password too short

rewrite
Karchnu 2020-10-25 23:54:37 +01:00
parent d12c125c22
commit bf0571c31b
1 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,11 @@ class AuthD::Service
end
end
# In this case we should not accept its registration.
if request.password.size < 4
return Response::Error.new "password too short"
end
uid = new_uid
password = hash_password request.password