Skip to content

Commit 61eb9f9

Browse files
fix: allow @ in the username (#1438)
1 parent 4306250 commit 61eb9f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn user_role_name(name: &str) -> Result<(), UsernameValidationError> {
118118
prev_was_special = false;
119119
}
120120
// Allow specific special characters
121-
'_' | '-' | '.' => {
121+
'_' | '-' | '.' | '@' => {
122122
if prev_was_special {
123123
return Err(UsernameValidationError::ConsecutiveSpecialChars);
124124
}

0 commit comments

Comments
 (0)