Skip to content
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

Im 73 users dont use email as unique and primary key 2 #132

Merged

Conversation

kristinaBc3
Copy link
Contributor

No description provided.

import org.springframework.data.annotation.TypeAlias;

@TypeAlias("VerifyEmail")
public class TokenVerifyEmailClickback extends TokenClickback {

private static final long serialVersionUID = 2577854654763037014L;
private String notVerifiedEmail;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question about naming (we know that naming is hard 😅): notVerifiedEmail vs newEmail ?

} else if(type.equals(TokenType.verifyEmail)) {
return new CreateVerifyEmailToken(repository, username, linkConfig).execute();
} else {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to return null or throw an Exception? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is for keeping the same structure.

throw new ActivationTokenFailedException("User Verification token failed");
}
if (token == null) {
throw new ActivationTokenFailedException("User Verification token failed");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we use a different error message for the missing token and the exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is unreacheable code, I'll delete it.

@kristinaBc3 kristinaBc3 merged commit d7caa6e into develop Feb 16, 2024
1 check passed
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.

3 participants