HUE-1071 [core] Option to require users to change their password when they first login
Review Request #4204 — Created Feb. 27, 2014 and updated
Information | |
---|---|
abec | |
old-hue-rw | |
HUE-1071 | |
Reviewers | |
hue | |
enricoberti, romain |
commit 777220b6dbe21093b3571d905d723cf8056d2f71 Author: Abraham Elmahrek <abraham@elmahrek.com> Date: Thu Feb 27 15:45:06 2014 -0800 HUE-1071 [core] Option to require users to change their password when they first login - Add tests - Reuse UserChangeForm - Add relaxed time constraint on "first_login" check :100644 100644 e26149e... 6ce7bba... M apps/useradmin/src/useradmin/forms.py :100644 100644 b090edc... 9f5d926... M apps/useradmin/src/useradmin/settings.py :000000 100644 0000000... 9553a2e... A apps/useradmin/src/useradmin/templates/change_pass.mako :100644 100644 a3ace32... ff95812... M apps/useradmin/src/useradmin/views.py :100644 100644 9a67a11... bff985f... M desktop/core/src/desktop/auth/views.py :100644 100644 0c56c6c... fc17ddd... M desktop/core/src/desktop/auth/views_test.py :100644 100644 dbc9a8c... 09a045d... M desktop/core/src/desktop/conf.py commit 46e4a21860a5aff2cf67ad85fbb09d153cedfed5 Author: Christopher Conner <cconner@cloudera.com> Date: Thu Feb 27 13:42:41 2014 -0800 HUE-1701 [beeswax] Better save query to a file UX Added a new URL change_pass and new mako for change_pass. Added paramater: [desktop] [[oauth]] change_default_password=true When enabled, if it's the user's first login and the AllowFirstUserDjangoBackend is enabled, then user's are re-directed to change_pass. once they change they're password, they are redirected to Home. :100644 100644 18e5ef2... e26149e... M apps/useradmin/src/useradmin/forms.py :100644 100644 9f5d926... b090edc... M apps/useradmin/src/useradmin/settings.py :100644 100644 ccf7f74... bae92d7... M apps/useradmin/src/useradmin/urls.py :100644 100644 44fe21c... a3ace32... M apps/useradmin/src/useradmin/views.py :100644 100644 286ecb5... c238d37... M desktop/core/src/desktop/auth/backend.py :100644 100644 49383b3... 9a67a11... M desktop/core/src/desktop/auth/views.py :100644 100644 12e899c... dbc9a8c... M desktop/core/src/desktop/conf.py
I've literally taken the diff from https://review.cloudera.org/r/3191/ and built on top of it. I've added a test for this feature. I've manually tested the working condition of this feature. http://sandbox.jenkins.cloudera.com/view/Hue/job/hue-testing-abe/36/