Update register.rs
Continuous integration / Check (push) Successful in 1m7s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m6s
Continuous integration / build-release (push) Successful in 1m38s

This commit is contained in:
wt
2026-02-15 13:49:11 +07:00
parent bb87570ef9
commit 8cb6143bac
+1 -1
View File
@@ -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 {