用户导入初始密码

This commit is contained in:
RuoYi
2019-01-11 10:14:31 +08:00
parent ca5b4bc852
commit 77550e2f11
7 changed files with 24 additions and 10 deletions

View File

@ -96,7 +96,7 @@ public class SysLoginService
if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
{
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked", user.getRemark())));
throw new UserBlockedException(user.getRemark());
throw new UserBlockedException();
}
passwordService.validate(user, password);

View File

@ -9,8 +9,8 @@ public class RoleBlockedException extends UserException
{
private static final long serialVersionUID = 1L;
public RoleBlockedException(String reason)
public RoleBlockedException()
{
super("role.blocked", new Object[] { reason });
super("role.blocked", null);
}
}

View File

@ -9,8 +9,8 @@ public class UserBlockedException extends UserException
{
private static final long serialVersionUID = 1L;
public UserBlockedException(String reason)
public UserBlockedException()
{
super("user.blocked", new Object[] { reason });
super("user.blocked", null);
}
}