Changes between Initial Version and Version 1 of Ticket #20916, comment 5
- Timestamp:
- Feb 9, 2014, 5:27:36 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20916, comment 5
initial v1 14 14 but it feels hacky, so I decided to try implementing a new method `simple_login`. 15 15 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`.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`.