Changes between Initial Version and Version 1 of Ticket #20916, comment 5


Ignore:
Timestamp:
Feb 9, 2014, 5:27:36 PM (11 years ago)
Author:
alasdair

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20916, comment 5

    initial v1  
    1414but it feels hacky, so I decided to try implementing a new method `simple_login`.
    1515
    16 I found that we have to specify ``user.backend``, even though the authentication backend is not used to log the user in. I have documented that `backend` must be in `AUTHENTICATION_BACKENDS` (if not, `simple_login` currently returns True, but any requests to a login protected view will be redirected to the login page). Perhaps I should raise a `ValueError` if the backend is not in `AUTHENTICATION_BACKENDS`.
     16I found that we have to specify `user.backend`, even though the authentication backend is not used to log the user in. I have documented that `backend` must be in `AUTHENTICATION_BACKENDS` (if not, `simple_login` currently returns True, but any requests to a login protected view will be redirected to the login page). Perhaps I should raise a `ValueError` if the backend is not in `AUTHENTICATION_BACKENDS`.
Back to Top