-
Notifications
You must be signed in to change notification settings - Fork 0
added reset password flow #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| .orElse(null); | ||
| } | ||
| passwordAuthStore.get().set(userSummary.getId(), hash(password)); | ||
| return userAuthValidator.authenticatedSession(new PasswordAuthData(userId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take user to homepage instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| * @return masked email address or the original email if it can't be properly masked | ||
| */ | ||
| public static String maskEmail(String email) { | ||
| if (email == null || email.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings.isNullOrEmpty
| return localPart.charAt(0) + | ||
| "*".repeat(localPart.length() - 2) + | ||
| localPart.charAt(localPart.length() - 1) + | ||
| domain; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All vals etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add test
No description provided.