mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-12 16:40:26 +00:00
feat(authentication): check password policy during registration of new users
This commit is contained in:
parent
1cea4b7ce3
commit
fc14e9189d
@ -788,6 +788,10 @@ def register():
|
|||||||
email=email
|
email=email
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(password_policy_pass, password_policy) = password_policy_check(user, password)
|
||||||
|
if not password_policy_pass:
|
||||||
|
return render_template('register.html', error_messages=password_policy, captcha_enable=CAPTCHA_ENABLE)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result = user.create_local_user()
|
result = user.create_local_user()
|
||||||
if result and result['status']:
|
if result and result['status']:
|
||||||
|
Loading…
Reference in New Issue
Block a user