chore: loosen username restrictions

This commit is contained in:
Paul Makles
2022-05-09 23:03:08 +01:00
parent c59c4146c4
commit d7527d9131
5 changed files with 7 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ pub async fn create_bot(db: &Db, user: User, info: Json<DataCreateBot>) -> Resul
let id = Ulid::new().to_string();
let bot_user = User {
id: id.clone(),
username: info.name,
username: info.name.trim().to_string(),
bot: Some(BotInformation {
owner: user.id.clone(),
}),