Commit d224a240 by fsn

优化部分代码

parent 2f3e2678
......@@ -38,7 +38,9 @@ public class ShiroFactroy implements IShiro {
@Override
public User user(String account) {
User user = userMgrDao.getByAccount(account);
// 账号不存在
if (null == user) {
throw new CredentialsException();
......
......@@ -3,14 +3,14 @@
<mapper namespace="com.stylefeng.guns.modular.system.dao.UserMgrDao">
<sql id="Base_Column_List">
id, account, name, birthday, sex, email,avatar,
id, account, name, birthday, sex, email, avatar,
phone, roleid,
deptid, status,
createtime, version
</sql>
<sql id="Base_Column_List_With_Pwd">
id, account, name, birthday,password, sex, email,avatar,
id, account, name, birthday,password, sex, email, avatar,
phone, roleid,salt,
deptid, status,
createtime, version
......
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