首页 > 解决方案 > django-registration,密码包含特殊字符

问题描述

我想创建一个登录/注册页面。我看到默认的 django 库不提供这样的功能(有什么原因吗?),但是库django-registration似乎可以帮助我。但是,我不喜欢密码允许字符的默认设置:Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. 事实上,我看不出有什么理由让网站强制用户使用没有特殊字符的密码@/./+/-/_... 我可以更改此设置以便用户可以使用他想要的任何字符吗?

谢谢!

标签: djangopasswordsdjango-authentication

解决方案


推荐阅读