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

fix: change password alert when password based login is disabled #3856

Merged
merged 1 commit into from
May 24, 2023

Conversation

nunogois
Copy link
Member

Accessing /profile/change-password directly would still allow you to change your password on the UI when "password based login" is disabled.

This PR makes it so we show an alert in that scenario explaining why you're not allowed to change your password.

We still allow users to change their password on the API level, but I think that's fine. The UI should be consistent though.

image

@vercel
Copy link

vercel bot commented May 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview May 24, 2023 10:40am
1 Ignored Deployment
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) May 24, 2023 10:40am

@nunogois nunogois enabled auto-merge (squash) May 24, 2023 10:42
@nunogois nunogois requested a review from gardleopard May 24, 2023 10:42
Copy link
Contributor

@gardleopard gardleopard left a comment

Choose a reason for hiding this comment

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

LGTM, change the commit message to something clearer when you merge.

fix: show alert in profile change password when disabled reads strange to me

@nunogois nunogois disabled auto-merge May 24, 2023 10:46
@nunogois nunogois changed the title fix: show alert in profile change password when disabled fix: 'change password' alert when 'password login' is disabled May 24, 2023
@nunogois nunogois changed the title fix: 'change password' alert when 'password login' is disabled fix: change password alert when password based login is disabled May 24, 2023
@nunogois nunogois merged commit 9f0de72 into main May 24, 2023
17 checks passed
@nunogois nunogois deleted the fix-profile-change-password-when-disabled branch May 24, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants