Commit 02b07289 by 王栋源

wdy

parent 36b95969
......@@ -98,20 +98,22 @@ class UtilsAuthSve extends AppServiceBase {
if (!pobj.appInfo) {
return system.getResult(null, "pobj.appInfo can not be empty !");
}
var result = await this.restPostUrl(pobj,this.centerAppUrl + "auth/accessAuth/modiPasswordByMobile");
var result = await this.restPostUrl(pobj, this.centerAppUrl + "auth/accessAuth/modiPasswordByMobile");
if (result.status == 0 && actionBody.userpin) {
this.userLogout(pobj, actionBody);
}
return system.getResultSuccess();
}
async userLogout(pobj, actionBody) {
console.log(actionBody.userpin);
if (!actionBody.userpin) {
return system.getResult(null, "actionBody.userpin can not be empty !");
}
var cacheManager = system.getObject("db.common.cacheManager");
await cacheManager["AppUserPinByLoginVcodeCache"].invalidate(actionBody.userpin);
await cacheManager["AppUserPinByLoginPwdCache"].invalidate(actionBody.userpin);
return system.getResultSuccess();
var a = await cacheManager["AppUserPinByLoginVcodeCache"].invalidate(actionBody.userpin);
var b = await cacheManager["AppUserPinByLoginPwdCache"].invalidate(actionBody.userpin);
var c=actionBody.userpin;
return system.getResultSuccess({a,b,c});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment