5657585960616263646566
if (auth != null) { currentUser = (AppUser) auth.getPrincipal(); } } if (currentUser == null) { throw new UnAuthenticatedUserException(); } if (this.doesPasswordHasToBeRenewed(currentUser)) { throw new ResetPasswordException(currentUser.getId()); } return currentUser; }
7576777879808182838485
if (auth != null) { currentUser = (AppUser) auth.getPrincipal(); } } if (currentUser == null) { throw new UnAuthenticatedUserException(); } if (this.shouldCheckForPasswordForceReset(commandWrapper) && this.doesPasswordHasToBeRenewed(currentUser)) { throw new ResetPasswordException( currentUser.getId()); } return currentUser;