PasswordPolicy

This commit is contained in:
Crystal.Sea
2020-08-26 19:56:31 +08:00
parent 05a517a7a0
commit 6058096896
15 changed files with 286 additions and 69 deletions

View File

@@ -69,11 +69,12 @@ public class IndexEndpoint {
UserInfo userInfo=WebContext.getUserInfo();
modelAndView.addObject("model", userInfo);
if(passwordSetType==ConstantsPasswordSetType.PASSWORD_EXPIRED){
if(passwordSetType==ConstantsPasswordSetType.PASSWORD_EXPIRED||
passwordSetType==ConstantsPasswordSetType.MANAGER_CHANGED_PASSWORD){
modelAndView.setViewName("passwordExpired");
return modelAndView;
}else if(passwordSetType==ConstantsPasswordSetType.INITIAL_PASSWORD||
passwordSetType==ConstantsPasswordSetType.MANAGER_CHANGED_PASSWORD){
}else if(passwordSetType==ConstantsPasswordSetType.INITIAL_PASSWORD){
modelAndView.setViewName("passwordInitial");
return modelAndView;
}