mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
代码优化
This commit is contained in:
@@ -229,9 +229,10 @@ public class LoginEntryPoint {
|
||||
String remeberMe = remeberMeManager.createRemeberMe(authentication, request, response);
|
||||
authJwt.setRemeberMe(remeberMe);
|
||||
}
|
||||
if(WebContext.getAttribute(WebConstants.CURRENT_USER_PASSWORD_SET_TYPE)!=null)
|
||||
if(WebContext.getAttribute(WebConstants.CURRENT_USER_PASSWORD_SET_TYPE)!=null) {
|
||||
authJwt.setPasswordSetType(
|
||||
(Integer)WebContext.getAttribute(WebConstants.CURRENT_USER_PASSWORD_SET_TYPE));
|
||||
}
|
||||
authJwtMessage = new Message<AuthJwt>(authJwt);
|
||||
|
||||
}else {//fail
|
||||
|
||||
@@ -53,7 +53,9 @@ public class LocalizationController {
|
||||
@RequestMapping(value={"/forward/{property}"})
|
||||
public ModelAndView forward(@PathVariable("property") String property,@CurrentUser UserInfo currentUser){
|
||||
Localization localization = localizationRepository.get(property,currentUser.getInstId());
|
||||
if(localization == null )localization = new Localization();
|
||||
if(localization == null ) {
|
||||
localization = new Localization();
|
||||
}
|
||||
localization.setProperty(property);
|
||||
localization.setInstId(currentUser.getInstId());
|
||||
return new ModelAndView("localization/updateLocalization","model",localization);
|
||||
|
||||
Reference in New Issue
Block a user