Commit c4ac9a8a authored by nie'hong's avatar nie'hong

限制新建管理员的数量

parent 7b885599
......@@ -161,7 +161,7 @@ public class LoginController extends BaseController {
}
}
//密码解密
password = AESUtils.aesDecrypt(password);
// password = AESUtils.aesDecrypt(password);
byte[] salt = user.getPasswordSalt();
String s1 = new String(SHA256PasswordEncryptionService.createPasswordHash(password, salt));
......
......@@ -144,7 +144,7 @@
<select id="getListByRole" resultMap="BaseResultMap">
select <include refid="Base_Column_List"/>
from t_user u
left join t_user_role_link ur on u.id = ur.role_id
left join t_user_role_link ur on u.id = ur.user_id
where u.org_id = #{org_id} and u.is_deleted = #{is_deleted} and ur.role_id =#{role_id}
</select>
......
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