Register: require at least 20-byte passwords.

This commit is contained in:
Philippe Pittoli 2023-06-12 01:55:06 +02:00
parent f9ad5e1d93
commit af22ea8d18

View File

@ -34,8 +34,8 @@ class AuthD::Request
end
# In this case we should not accept its registration.
if @password.size < 4
return Response::Error.new "password too short"
if @password.size < 20
return Response::Error.new "password too short (< 20 characters)"
end
uid = authd.new_uid