[Django] #27891: Allow to set a login backend when using PasswordResetConfirmView

143 views
Skip to first unread message

Django

unread,
Mar 1, 2017, 6:39:08 PM3/1/17
to django-...@googlegroups.com
#27891: Allow to set a login backend when using PasswordResetConfirmView
----------------------------------------+------------------------
Reporter: Camilo Nova | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------
When using `PasswordResetConfirmView` and `post_reset_login=True` you get
an error when having multiple `AUTHENTICATION_BACKENDS` you get this
error:

''You have multiple authentication backends configured and therefore must
provide the `backend` argument or set the `backend` attribute on the
user.''

I will work on a patch to fix this.

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

Django

unread,
Mar 1, 2017, 7:16:10 PM3/1/17
to django-...@googlegroups.com
#27891: Allow to set a login backend when using PasswordResetConfirmView
------------------------------+---------------------------------------
Reporter: Camilo Nova | Owner: Camilo Nova
Type: Bug | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Camilo Nova):

* status: new => assigned
* owner: nobody => Camilo Nova
* has_patch: 0 => 1


Comment:

I have created this PR https://github.com/django/django/pull/8134

--
Ticket URL: <https://code.djangoproject.com/ticket/27891#comment:1>

Django

unread,
Mar 2, 2017, 10:22:47 AM3/2/17
to django-...@googlegroups.com
#27891: Allow setting a login backend when using PasswordResetConfirmView

------------------------------+---------------------------------------
Reporter: Camilo Nova | Owner: Camilo Nova
Type: Bug | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/27891#comment:2>

Django

unread,
Mar 6, 2017, 10:18:01 AM3/6/17
to django-...@googlegroups.com
#27891: Allow setting a login backend when using PasswordResetConfirmView
------------------------------+---------------------------------------
Reporter: Camilo Nova | Owner: Camilo Nova
Type: Bug | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27891#comment:3>

Django

unread,
Mar 7, 2017, 7:52:37 PM3/7/17
to django-...@googlegroups.com
#27891: Allow setting a login backend when using PasswordResetConfirmView
------------------------------+---------------------------------------
Reporter: Camilo Nova | Owner: Camilo Nova
Type: Bug | Status: closed
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"5db465d5a6c389b8f9c6e21f7233be9387dc069d" 5db465d5]:
{{{
#!CommitTicketReference repository=""
revision="5db465d5a6c389b8f9c6e21f7233be9387dc069d"
Fixed #27891 -- Added PasswordResetConfirmView.post_reset_login_backend.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27891#comment:4>

Django

unread,
Mar 7, 2017, 8:34:13 PM3/7/17
to django-...@googlegroups.com
#27891: Allow setting a login backend when using PasswordResetConfirmView
------------------------------+---------------------------------------
Reporter: Camilo Nova | Owner: Camilo Nova
Type: Bug | Status: closed
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"33d2c53fb150d58fe4b212438050eea28bf4bf6f" 33d2c53]:
{{{
#!CommitTicketReference repository=""
revision="33d2c53fb150d58fe4b212438050eea28bf4bf6f"
[1.11.x] Fixed #27891 -- Added
PasswordResetConfirmView.post_reset_login_backend.

Backport of 5db465d5a6c389b8f9c6e21f7233be9387dc069d from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27891#comment:5>

Reply all
Reply to author
Forward
0 new messages