names are changed

This commit is contained in:
병준 박 2022-08-06 04:08:07 +00:00
parent 4d36bd6ae5
commit 891291af95
7 changed files with 33 additions and 28 deletions

View File

@ -55,7 +55,12 @@ export class AuthSignInComponent implements OnInit {
// recaptcha: ['', Validators.required],
});
this._identityService.captcha().then((result) => {
console.log('success', result, result.getToken(), result.getImage());
console.log(
'success',
result,
result.getSecurityCodeHash(),
result.getImage()
);
this.imagePath = this._sanitizer.bypassSecurityTrustResourceUrl(
'data:image/jpg;base64,' + result.getImage()

View File

@ -13,8 +13,8 @@ export const SUBJECT_CAPTCHA: string;
export const SUBJECT_SIGNIN: string;
export class SigninRequest extends jspb.Message {
getToken(): string;
setToken(value: string): void;
getSecurityCodeHash(): string;
setSecurityCodeHash(value: string): void;
getSecurityCode(): string;
setSecurityCode(value: string): void;
@ -48,7 +48,7 @@ export class SigninRequest extends jspb.Message {
export namespace SigninRequest {
export type AsObject = {
token: string;
securityCodeHash: string;
securityCode: string;
username: string;
password: string;

View File

@ -161,7 +161,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
) {
var f,
obj = {
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
@ -206,7 +206,7 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.deserializeBinaryFromReade
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setToken(value);
msg.setSecurityCodeHash(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
@ -252,7 +252,7 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.serializeBinary
proto.bet.beteran.c2se.backend.identity.SigninRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getToken();
f = message.getSecurityCodeHash();
if (f.length > 0) {
writer.writeString(1, f);
}
@ -271,10 +271,10 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.serializeBinaryToWriter =
};
/**
* optional string token = 1;
* optional string securityCodeHash = 1;
* @return {string}
*/
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getToken =
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getSecurityCodeHash =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
@ -285,7 +285,7 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getToken =
* @param {string} value
* @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this
*/
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.setToken =
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.setSecurityCodeHash =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};

View File

@ -281,8 +281,8 @@ export namespace CaptchaResponse {
};
export class Result extends jspb.Message {
getToken(): string;
setToken(value: string): void;
getSecurityCodeHash(): string;
setSecurityCodeHash(value: string): void;
getImage(): string;
setImage(value: string): void;
@ -307,7 +307,7 @@ export namespace CaptchaResponse {
export namespace Result {
export type AsObject = {
token: string;
securityCodeHash: string;
image: string;
};
}

View File

@ -1611,7 +1611,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
function (includeInstance, msg) {
var f,
obj = {
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
image: jspb.Message.getFieldWithDefault(msg, 2, ""),
};
@ -1655,7 +1655,7 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.deserializeBinaryF
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setToken(value);
msg.setSecurityCodeHash(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
@ -1693,7 +1693,7 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.serializ
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getToken();
f = message.getSecurityCodeHash();
if (f.length > 0) {
writer.writeString(1, f);
}
@ -1704,10 +1704,10 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.serializeBinaryToW
};
/**
* optional string token = 1;
* optional string securityCodeHash = 1;
* @return {string}
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getToken =
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getSecurityCodeHash =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
@ -1718,7 +1718,7 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getToken
* @param {string} value
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this
*/
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.setToken =
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.setSecurityCodeHash =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};

View File

@ -13,8 +13,8 @@ export const SUBJECT_CAPTCHA: string;
export const SUBJECT_SIGNIN: string;
export class SigninRequest extends jspb.Message {
getToken(): string;
setToken(value: string): void;
getSecurityCodeHash(): string;
setSecurityCodeHash(value: string): void;
getSecurityCode(): string;
setSecurityCode(value: string): void;
@ -48,7 +48,7 @@ export class SigninRequest extends jspb.Message {
export namespace SigninRequest {
export type AsObject = {
token: string;
securityCodeHash: string;
securityCode: string;
username: string;
password: string;

View File

@ -161,7 +161,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
) {
var f,
obj = {
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
@ -206,7 +206,7 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.deserializeBinaryFromRead
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setToken(value);
msg.setSecurityCodeHash(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
@ -252,7 +252,7 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.serializeBinary
proto.bet.beteran.c2se.frontend.identity.SigninRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getToken();
f = message.getSecurityCodeHash();
if (f.length > 0) {
writer.writeString(1, f);
}
@ -271,10 +271,10 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.serializeBinaryToWriter =
};
/**
* optional string token = 1;
* optional string securityCodeHash = 1;
* @return {string}
*/
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getToken =
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getSecurityCodeHash =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 1, "")
@ -285,7 +285,7 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getToken =
* @param {string} value
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this
*/
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.setToken =
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.setSecurityCodeHash =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};