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

Auth links consistency on email confirmation pages. #5961

Conversation

ShPakvel
Copy link
Contributor

Email confirmation pages can be open by logged in user. In such case we have following inconsistency.

  • Below confirmation form we have "Register" and "Log in" links.
  • While at the top menu we have "Settings" and "Log out".

This change fixing inconsistency by presenting links below confirmation form only if user is not logged in.
Note: I used if !condition because unless is going to be deprecated.

Email confirmation pages can be open by logged in user.
In such case we have following inconsistency.
- Below confirmation form we have "Register" and "Log in" links.
- While at the top menu we have "Settings" and "Log out".

This change fixing inconsistency by presenting links below confirmation form only if user is not logged in.
Note: I used `if !condition` because `unless` is going to be deprecated.
@josevalim josevalim merged commit 1dafeeb into phoenixframework:main Nov 9, 2024
7 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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