When a user has been created but they do not create a password within 72 hours, admin users need to be able to resend a fresh token
Also, previously created accounts did not have OTP enforced
This PR has two changes:
conditionals to the RCPCHLoginView and the Home url to redirect to two_factor:profile if user is not verified
Add a new button to the create user form, visible only on update user views and if the user in question has not confirmed their email. Separate logic then identifies this on button click in the post request in the view to resend the email and add a success message.
Code changes
changes to:
otp_required mostly styling
password_reset_confirm - mostly styling
npda_user_form.html: add new button and on click event
urls.py: remove old LoginView
home.py: conditional to redirect to OTP profile if user not validated
documentation updates on workflow
Documentation changes (done or required as a result of this PR)
Please describe any changes to documentation here.
Overview
When a user has been created but they do not create a password within 72 hours, admin users need to be able to resend a fresh token Also, previously created accounts did not have OTP enforced
This PR has two changes:
two_factor:profile
if user is not verifiedCode changes
changes to:
otp_required
mostly stylingpassword_reset_confirm
- mostly stylingnpda_user_form.html
: add new button and on click eventurls.py
: remove old LoginViewhome.py
: conditional to redirect to OTP profile if user not validated documentation updates on workflowDocumentation changes (done or required as a result of this PR)
Please describe any changes to documentation here.
Related Issues
closes @issue37