names are changed
This commit is contained in:
parent
4d36bd6ae5
commit
891291af95
|
@ -55,7 +55,12 @@ export class AuthSignInComponent implements OnInit {
|
||||||
// recaptcha: ['', Validators.required],
|
// recaptcha: ['', Validators.required],
|
||||||
});
|
});
|
||||||
this._identityService.captcha().then((result) => {
|
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(
|
this.imagePath = this._sanitizer.bypassSecurityTrustResourceUrl(
|
||||||
'data:image/jpg;base64,' + result.getImage()
|
'data:image/jpg;base64,' + result.getImage()
|
||||||
|
|
|
@ -13,8 +13,8 @@ export const SUBJECT_CAPTCHA: string;
|
||||||
export const SUBJECT_SIGNIN: string;
|
export const SUBJECT_SIGNIN: string;
|
||||||
|
|
||||||
export class SigninRequest extends jspb.Message {
|
export class SigninRequest extends jspb.Message {
|
||||||
getToken(): string;
|
getSecurityCodeHash(): string;
|
||||||
setToken(value: string): void;
|
setSecurityCodeHash(value: string): void;
|
||||||
|
|
||||||
getSecurityCode(): string;
|
getSecurityCode(): string;
|
||||||
setSecurityCode(value: string): void;
|
setSecurityCode(value: string): void;
|
||||||
|
@ -48,7 +48,7 @@ export class SigninRequest extends jspb.Message {
|
||||||
|
|
||||||
export namespace SigninRequest {
|
export namespace SigninRequest {
|
||||||
export type AsObject = {
|
export type AsObject = {
|
||||||
token: string;
|
securityCodeHash: string;
|
||||||
securityCode: string;
|
securityCode: string;
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
|
|
@ -161,7 +161,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
) {
|
) {
|
||||||
var f,
|
var f,
|
||||||
obj = {
|
obj = {
|
||||||
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
@ -206,7 +206,7 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.deserializeBinaryFromReade
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 1:
|
case 1:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setToken(value);
|
msg.setSecurityCodeHash(value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
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 =
|
proto.bet.beteran.c2se.backend.identity.SigninRequest.serializeBinaryToWriter =
|
||||||
function (message, writer) {
|
function (message, writer) {
|
||||||
var f = undefined;
|
var f = undefined;
|
||||||
f = message.getToken();
|
f = message.getSecurityCodeHash();
|
||||||
if (f.length > 0) {
|
if (f.length > 0) {
|
||||||
writer.writeString(1, f);
|
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}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getToken =
|
proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getSecurityCodeHash =
|
||||||
function () {
|
function () {
|
||||||
return /** @type {string} */ (
|
return /** @type {string} */ (
|
||||||
jspb.Message.getFieldWithDefault(this, 1, "")
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
||||||
|
@ -285,7 +285,7 @@ proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getToken =
|
||||||
* @param {string} value
|
* @param {string} value
|
||||||
* @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this
|
* @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) {
|
function (value) {
|
||||||
return jspb.Message.setProto3StringField(this, 1, value);
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
};
|
};
|
||||||
|
|
|
@ -281,8 +281,8 @@ export namespace CaptchaResponse {
|
||||||
};
|
};
|
||||||
|
|
||||||
export class Result extends jspb.Message {
|
export class Result extends jspb.Message {
|
||||||
getToken(): string;
|
getSecurityCodeHash(): string;
|
||||||
setToken(value: string): void;
|
setSecurityCodeHash(value: string): void;
|
||||||
|
|
||||||
getImage(): string;
|
getImage(): string;
|
||||||
setImage(value: string): void;
|
setImage(value: string): void;
|
||||||
|
@ -307,7 +307,7 @@ export namespace CaptchaResponse {
|
||||||
|
|
||||||
export namespace Result {
|
export namespace Result {
|
||||||
export type AsObject = {
|
export type AsObject = {
|
||||||
token: string;
|
securityCodeHash: string;
|
||||||
image: string;
|
image: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1611,7 +1611,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
function (includeInstance, msg) {
|
function (includeInstance, msg) {
|
||||||
var f,
|
var f,
|
||||||
obj = {
|
obj = {
|
||||||
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
image: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
image: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1655,7 +1655,7 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.deserializeBinaryF
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 1:
|
case 1:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setToken(value);
|
msg.setSecurityCodeHash(value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
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 =
|
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.serializeBinaryToWriter =
|
||||||
function (message, writer) {
|
function (message, writer) {
|
||||||
var f = undefined;
|
var f = undefined;
|
||||||
f = message.getToken();
|
f = message.getSecurityCodeHash();
|
||||||
if (f.length > 0) {
|
if (f.length > 0) {
|
||||||
writer.writeString(1, f);
|
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}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getToken =
|
proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getSecurityCodeHash =
|
||||||
function () {
|
function () {
|
||||||
return /** @type {string} */ (
|
return /** @type {string} */ (
|
||||||
jspb.Message.getFieldWithDefault(this, 1, "")
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
||||||
|
@ -1718,7 +1718,7 @@ proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getToken
|
||||||
* @param {string} value
|
* @param {string} value
|
||||||
* @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this
|
* @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) {
|
function (value) {
|
||||||
return jspb.Message.setProto3StringField(this, 1, value);
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,8 +13,8 @@ export const SUBJECT_CAPTCHA: string;
|
||||||
export const SUBJECT_SIGNIN: string;
|
export const SUBJECT_SIGNIN: string;
|
||||||
|
|
||||||
export class SigninRequest extends jspb.Message {
|
export class SigninRequest extends jspb.Message {
|
||||||
getToken(): string;
|
getSecurityCodeHash(): string;
|
||||||
setToken(value: string): void;
|
setSecurityCodeHash(value: string): void;
|
||||||
|
|
||||||
getSecurityCode(): string;
|
getSecurityCode(): string;
|
||||||
setSecurityCode(value: string): void;
|
setSecurityCode(value: string): void;
|
||||||
|
@ -48,7 +48,7 @@ export class SigninRequest extends jspb.Message {
|
||||||
|
|
||||||
export namespace SigninRequest {
|
export namespace SigninRequest {
|
||||||
export type AsObject = {
|
export type AsObject = {
|
||||||
token: string;
|
securityCodeHash: string;
|
||||||
securityCode: string;
|
securityCode: string;
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
|
|
@ -161,7 +161,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
) {
|
) {
|
||||||
var f,
|
var f,
|
||||||
obj = {
|
obj = {
|
||||||
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
password: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
@ -206,7 +206,7 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.deserializeBinaryFromRead
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 1:
|
case 1:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setToken(value);
|
msg.setSecurityCodeHash(value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
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 =
|
proto.bet.beteran.c2se.frontend.identity.SigninRequest.serializeBinaryToWriter =
|
||||||
function (message, writer) {
|
function (message, writer) {
|
||||||
var f = undefined;
|
var f = undefined;
|
||||||
f = message.getToken();
|
f = message.getSecurityCodeHash();
|
||||||
if (f.length > 0) {
|
if (f.length > 0) {
|
||||||
writer.writeString(1, f);
|
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}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getToken =
|
proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getSecurityCodeHash =
|
||||||
function () {
|
function () {
|
||||||
return /** @type {string} */ (
|
return /** @type {string} */ (
|
||||||
jspb.Message.getFieldWithDefault(this, 1, "")
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
||||||
|
@ -285,7 +285,7 @@ proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getToken =
|
||||||
* @param {string} value
|
* @param {string} value
|
||||||
* @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this
|
* @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) {
|
function (value) {
|
||||||
return jspb.Message.setProto3StringField(this, 1, value);
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user