Commit bbfd0b39 by 孙亚楠

d

parent 623b0b9f
...@@ -172,6 +172,7 @@ class SsmuserService extends ServiceBase { ...@@ -172,6 +172,7 @@ class SsmuserService extends ServiceBase {
let pwd = await this.getEncryptStr(password); let pwd = await this.getEncryptStr(password);
var user = await this.dao.getSingleSsmUser({ucname}); var user = await this.dao.getSingleSsmUser({ucname});
user = user[0] || null;
if(!user || pwd != user.password) { if(!user || pwd != user.password) {
return system.getResult(null, "用户名或密码错误"); return system.getResult(null, "用户名或密码错误");
} }
......
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