是否需要在Django中验证用户名和密码 . 所有我能找到的是https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html
这只是使用用户名验证
是否需要在Django中验证用户名和密码 . 所有我能找到的是https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html
这只是使用用户名验证
2 回答
看看allauth可能值得你花些时间 . https://django-allauth.readthedocs.io/en/latest/overview.html
Django默认使用用户名验证用户 . 如果您想使用电子邮件而不是用户名对用户进行身份验证,可以查看本教程 .
Authenticate user with email instead of username