start scan data
This commit is contained in:
@@ -38,13 +38,11 @@ export class StartscanPage implements OnInit {
|
||||
username: string, sessionid: string, action: number,login_mode: number
|
||||
};
|
||||
startQRLogin(qrString) {
|
||||
// this.username='Y7P0WW9B05';
|
||||
// this.pin='1234';
|
||||
if (qrString == null || qrString == '' ) {
|
||||
return;
|
||||
}
|
||||
this.loginQrData = { username: qrString, sessionid: 'DUMMY-APP-SESSION-STARTER', action: 11022,login_mode: 1105 }
|
||||
this.wrenchService.loginUser(this.loginQrData).subscribe(
|
||||
this.wrenchService.qrLoginUser(this.loginQrData).subscribe(
|
||||
loginResult => {
|
||||
this.loginResult = loginResult;
|
||||
console.log("INTERNAL RETURN->" + this.loginResult.internal_return);
|
||||
|
||||
@@ -23,7 +23,7 @@ export class WrenchService {
|
||||
getPostData(reqPath:string, reqData): Observable<any> {
|
||||
|
||||
if (reqPath != 'userlogin' && reqPath != 'createuser'
|
||||
&& reqPath !='stepresetpass' && reqPath !='startresetpasword'){
|
||||
&& reqPath !='stepresetpass' && reqPath !='startresetpasword' && reqPath!='qrlogin'){
|
||||
const sessionId = this.sessionDataProviderService.session;
|
||||
if (sessionId.length==0){
|
||||
//debugger;
|
||||
@@ -89,7 +89,11 @@ export class WrenchService {
|
||||
loginUser(loginData) {
|
||||
return this.getPostData('userlogin',loginData);
|
||||
}
|
||||
//
|
||||
|
||||
qrLoginUser(loginData) {
|
||||
return this.getPostData('qrlogin',loginData);
|
||||
}
|
||||
getBlogData(blogReq){
|
||||
//const blogReq=[];
|
||||
return this.getPostData('blogdata',blogReq);
|
||||
|
||||
Reference in New Issue
Block a user