password_reset_confirm(request, uidb64=None, token=None, template_name='registration/password_reset_confirm.html', token_generator=default_token_generator, set_password_form=SetPasswordForm, post_reset_redirect=None, current_app=None, extra_context=None)
Presents a form for entering a new password.
URL name: password_reset_confirm
Optional arguments:
-
uidb64: The user’s id encoded in base 64. Defaults toNone. -
token: Token to check that the password is valid. Defaults toNone. -
template_name: The full name of a template to display the confirm password view. Default value isregistration/password_reset_confirm.html. -
token_generator: Instance of the class to check the password. This will default todefault_token_generator, it’s an instance ofdjango.contrib.auth.tokens.PasswordResetTokenGenerator. -
set_password_form: Form that will be used to set the password. Defaults toSetPasswordForm -
post_reset_redirect: URL to redirect after the password reset done. Defaults toNone. -
current_app: A hint indicating which application contains the current view. See the namespaced URL resolution strategy for more information. -
extra_context: A dictionary of context data that will be added to the default context data passed to the template.
Template context:
-
form: The form (seeset_password_formabove) for setting the new user’s password. -
validlink: Boolean, True if the link (combination ofuidb64andtoken) is valid or unused yet.
Deprecated since version 1.9: The current_app parameter is deprecated and will be removed in Django 2.0. Callers should set request.current_app instead.
Please login to continue.