Register: require at least 20-byte passwords.

master
Philippe Pittoli 2023-06-12 01:55:06 +02:00
parent f9ad5e1d93
commit af22ea8d18
1 changed files with 2 additions and 2 deletions

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