We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc3bdc9 commit 5a4243eCopy full SHA for 5a4243e
src/endpoints/developers.rs
@@ -207,7 +207,7 @@ pub async fn update_profile(
207
.await
208
.or(Err(ApiError::DbAcquireError))?;
209
210
- if json.display_name.chars().all(char::is_alphanumeric) {
+ if !json.display_name.chars().all(char::is_alphanumeric) {
211
return Err(ApiError::BadRequest(
212
"Display name must contain only alphanumeric characters".into(),
213
));
0 commit comments