Add a Remeber me checkbox to login that extend session time. (#3926)
Fixes #3897 "Remember me" is only available when logging in with password. I see this as an "advanced" feature. The passwordless login flow is easy so not a big hassle to do it once a day. Organisation that wants to can set `SESSION_COOKIE_AGE` to a custom value, e.g. set it to two weeks to reagin the old behaviour. To disable "Remember me" set `SESSION_COOKIE_AGE` to the same value as `SESSION_COOKIE_AGE_LONG` This PR also: * removes unused code is_public_site * removes unused code register_extra_text * removes all use of link-button* classes. Buttons are now only handled by the button class. * add a tiny border radius to all buttons (this is something we implement on all elements in Hypha)
Showing
- docs/setup/administrators/configuration.md 7 additions, 2 deletionsdocs/setup/administrators/configuration.md
- hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html 1 addition, 1 deletion...pply/dashboard/templates/dashboard/includes/my-tasks.html
- hypha/apply/review/templates/review/review_detail.html 1 addition, 1 deletionhypha/apply/review/templates/review/review_detail.html
- hypha/apply/templates/forms/includes/multi_input_field.html 1 addition, 1 deletionhypha/apply/templates/forms/includes/multi_input_field.html
- hypha/apply/users/forms.py 20 additions, 1 deletionhypha/apply/users/forms.py
- hypha/apply/users/migrations/0025_remove_authsettings_register_extra_text.py 16 additions, 0 deletions...igrations/0025_remove_authsettings_register_extra_text.py
- hypha/apply/users/models.py 0 additions, 9 deletionshypha/apply/users/models.py
- hypha/apply/users/templates/users/login.html 1 addition, 1 deletionhypha/apply/users/templates/users/login.html
- hypha/apply/users/templates/users/partials/confirmation_code_sent.html 1 addition, 1 deletion...sers/templates/users/partials/confirmation_code_sent.html
- hypha/apply/users/templates/users/password_reset/form.html 1 addition, 1 deletionhypha/apply/users/templates/users/password_reset/form.html
- hypha/apply/users/templates/users/passwordless_login_signup.html 1 addition, 1 deletion...pply/users/templates/users/passwordless_login_signup.html
- hypha/apply/users/views.py 6 additions, 7 deletionshypha/apply/users/views.py
- hypha/public/news/templates/news/news_index.html 1 addition, 1 deletionhypha/public/news/templates/news/news_index.html
- hypha/settings/base.py 7 additions, 2 deletionshypha/settings/base.py
- hypha/static_src/javascript/submission-form-copy.js 2 additions, 4 deletionshypha/static_src/javascript/submission-form-copy.js
- hypha/static_src/javascript/toggle-related.js 1 addition, 1 deletionhypha/static_src/javascript/toggle-related.js
- hypha/static_src/sass/abstracts/_mixins.scss 5 additions, 15 deletionshypha/static_src/sass/abstracts/_mixins.scss
- hypha/static_src/sass/abstracts/_variables.scss 10 additions, 0 deletionshypha/static_src/sass/abstracts/_variables.scss
- hypha/static_src/sass/components/_button.scss 32 additions, 10 deletionshypha/static_src/sass/components/_button.scss
- hypha/static_src/sass/components/_link.scss 0 additions, 50 deletionshypha/static_src/sass/components/_link.scss
Loading
Please register or sign in to comment