用户导入初始密码
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user