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

Returning correct error when user is unable to change password #635

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

Alevsk
Copy link
Contributor

@Alevsk Alevsk commented Mar 9, 2021

When password change fails because of permissions/policies

Screen Shot 2021-03-09 at 00 07 31

When password change fails because of incorrect current password

Screen Shot 2021-03-09 at 00 07 04

Change password is enabled

Screen Shot 2021-03-09 at 15 44 10

Change password is disabled

Screen Shot 2021-03-09 at 15 43 59

@Alevsk Alevsk self-assigned this Mar 9, 2021
dvaldivia
dvaldivia previously approved these changes Mar 9, 2021
@Alevsk Alevsk linked an issue Mar 9, 2021 that may be closed by this pull request
kannappanr
kannappanr previously approved these changes Mar 9, 2021
Copy link

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

Please fix

restapi/error.go Outdated Show resolved Hide resolved
@dvaldivia dvaldivia dismissed stale reviews from kannappanr and themself via ccaf0fe March 9, 2021 17:21
@Alevsk Alevsk force-pushed the issue-631 branch 2 times, most recently from 1256850 to f236e26 Compare March 9, 2021 20:20
@Alevsk Alevsk requested a review from bexsoft March 9, 2021 20:21
bexsoft
bexsoft previously approved these changes Mar 9, 2021
Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

LGTM

dvaldivia
dvaldivia previously approved these changes Mar 9, 2021
@cesnietor
Copy link
Collaborator

might need to remake assets due to previous merge

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

on hold

@harshavardhana
Copy link
Member

Why not disable the UI element entirely?

@Alevsk
Copy link
Contributor Author

Alevsk commented Mar 9, 2021

Why not disable the UI element entirely?

good idea, adding support to enable/disable specific UI elements and not only options at the menu, with this we will improve UX for console users

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

Please change that line, beside of that, looks ok

portal-ui/src/screens/Console/Account/Account.tsx Outdated Show resolved Hide resolved
- Returning correct error when user is unable to change password
- Added support for enable/disable UI elements based on allowed apis
@cesnietor cesnietor merged commit 9c1e87b into minio:master Mar 10, 2021
@Alevsk Alevsk deleted the issue-631 branch March 10, 2021 01:40
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.

Add more descriptive messages for errors in User change password
6 participants