#28780: Allow customizing PasswordResetConfirmView's INTERNAL_RESET_URL_TOKEN
------------------------------+------------------------------------
     Reporter:  Meiyer        |                    Owner:  Tim G.
         Type:  New feature   |                   Status:  assigned
    Component:  contrib.auth  |                  Version:  1.11
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  1             |                    UI/UX:  1
------------------------------+------------------------------------

Comment (by Meiyer):

 I think the configuration that will allow the easiest customization is a
 class attribute such as:
 {{{
 class PasswordResetConfirmView(PasswordContextMixin, FormView):
     reset_token_placeholder = INTERNAL_RESET_URL_TOKEN
 }}}
 Then it can be used in urls.py with
 {{{
 url('<pattern>',
     PasswordResetConfirmView.as_view(reset_token_placeholder='wachtwoord-
 aanduiding'),
     name='password_reset_confirm')
 }}}
 Because of the format limitations on the <token> parameter (two
 alphanumeric strings separated by a hyphen), it will be useful to add
 instructions to the documentation so that developers do not accidentally
 break their password reset functionality.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28780#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.dd2f6a89a4b804584061daacfebf02e5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to