password too short

This commit is contained in:
Karchnu 2020-10-25 23:54:37 +01:00
parent d12c125c22
commit bf0571c31b

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