EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Change password form should adjust for permissions #1290

Closed murphysj closed 7 years ago

murphysj commented 8 years ago

WHO: Sylvia

right now the form asks for the admin password even if it is an individual user. the form should only say that for admins and say "old password" for other users.

murphysj commented 8 years ago

the form did adjust for staff status. that means users see "old password". The form did not adjust for staff status when the staffer was changing their own password. Added an extra if statement to take care of that point.

murphysj commented 8 years ago

@LucaCinquini

@LucaCinquini

You will have to test this for me since I nor cu-dev have a local Idp.

To test:

a) Login as yourself and go to your profile then click on change password. The form should say "old password" in the first row.

b) Login as yourself but go to someone else's profile then click on change password. The form should say "adminstrator password".

murphysj commented 7 years ago

we changed the text slightly and luca tested.