-
- Downloads
Mark passwords for SSO-only users as invalid to allow changing them later
Add a new "hash type" for invalid passwords, which is never equal to
normal passwords, but nevertheless can be changed without being known by
the user.
This "invalid" password can only be set by directly setting the password
hash type. When updating the password using update_password method, it will
always be upgrade it to the strongest hash type, sha256crypt.
To allow changing this "invalid" password to a normal one, stop
requiring a non-empty current password in the password change dialog
when changing a password from an "invalid" one. Don’t show the current
password box either, as it is not used anyway in this case, making
it better not to show it to avoid confusion.
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
Gbp-Pq: Topic collabora/sso
Gbp-Pq: Name Mark-passwords-for-SSO-only-users-as-invalid-to-allow-cha.patch
Showing
- src/api/app/controllers/webui/user_controller.rb 1 addition, 1 deletionsrc/api/app/controllers/webui/user_controller.rb
- src/api/app/models/user.rb 11 additions, 2 deletionssrc/api/app/models/user.rb
- src/api/app/views/webui/user/_password_dialog.html.erb 2 additions, 0 deletionssrc/api/app/views/webui/user/_password_dialog.html.erb
Please register or sign in to comment