fix: was blocking users
This commit is contained in:
parent
9db8a238d2
commit
6cc97eccb2
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue