fix: was blocking users

This commit is contained in:
silver 2023-10-19 20:27:22 +01:00
parent 9db8a238d2
commit 6cc97eccb2

View file

@ -274,7 +274,7 @@ pub mod account {
// check against forbidden names first // check against forbidden names first
for name in &config.users_restricted { for name in &config.users_restricted {
if user.contains(name) { if user.eq_ignore_ascii_case(name) {
return Ok(json!({"result": "error", "error": "username not available"}).into()); return Ok(json!({"result": "error", "error": "username not available"}).into());
} }
} }