#20916: Provide a "simple_login" feature for the test client -----------------------------------+------------------------------------ Reporter: mjtamlyn | Owner: alasdair Type: New feature | Status: assigned Component: Testing framework | Version: master Severity: Normal | Resolution: Keywords: auth | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -----------------------------------+------------------------------------
Comment (by julien): Thank you for your work on this ticket. I feel a bit uncomfortable adding an inherently insecure authenticate backend to core. This feature only really makes sense for testing, so I'd personally prefer to add it directly to the test client. Also, the term "simple" seems a little vague to me. Something like ``force_login(user)``, or ``login(user, force=True)`` would seem more explicit. I'd appreciate getting another core dev's opinion about the above. By the way, could you re-create the PR against the official Django repository on github (instead of your own fork)? Thanks! -- Ticket URL: <https://code.djangoproject.com/ticket/20916#comment:12> 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/066.19f3a5fef94a8ae07dfdfefe875619e2%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.