Update register.rs
This commit is contained in:
1 parent
bb87570ef9
commit
8cb6143bac
1 file changed
+1
-1
+1
-1
@@ -20,7 +20,7 @@ pub async fn register_handler(
|
||||
});
|
||||
}
|
||||
|
||||
if payload.username.len() < 3
|
||||
if payload.username.len() < 2
|
||||
|| payload.username.len() > state.config.limits.max_username_length
|
||||
{
|
||||
return Json(model::AuthResponse {
|
||||
|
||||
Reference in new issue
Block a user