Skip to content

Conversation

@tusharmndr
Copy link
Collaborator

No description provided.

.orElse(null);
}
passwordAuthStore.get().set(userSummary.getId(), hash(password));
return userAuthValidator.authenticatedSession(new PasswordAuthData(userId,
Copy link
Contributor

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

Copy link
Collaborator Author

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()) {
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All vals etc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants