Commit d224a240 by fsn

优化部分代码

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