Merge branch 'main' of https://git.sfs.ddnss.org/WDG/noise-server
This commit is contained in:
commit
0d9631b6c4
@ -121,7 +121,7 @@ fn is_valid_user_name(username: &str) -> bool {
|
|||||||
|
|
||||||
for c in username[1..].chars() {
|
for c in username[1..].chars() {
|
||||||
if !(
|
if !(
|
||||||
c.is_ascii_alphabetic() && c.is_ascii_lowercase() ||
|
c.is_alphabetic() && c.to_string() == c.to_lowercase().to_string() ||
|
||||||
c.is_ascii_digit() ||
|
c.is_ascii_digit() ||
|
||||||
"_-.".contains(c)
|
"_-.".contains(c)
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user