Update register.rs
This commit is contained in:
+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