mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-19 05:50:50 +01:00
Merge pull request 'fix: /register lowercases user ids' (#28) from lowercase into master
This commit is contained in:
commit
25ebde5af8
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ pub fn register_route(
|
||||||
let user_id = match UserId::parse_with_server_name(
|
let user_id = match UserId::parse_with_server_name(
|
||||||
body.username
|
body.username
|
||||||
.clone()
|
.clone()
|
||||||
.unwrap_or_else(|| utils::random_string(GUEST_NAME_LENGTH)),
|
.unwrap_or_else(|| utils::random_string(GUEST_NAME_LENGTH))
|
||||||
|
.to_lowercase(),
|
||||||
db.globals.server_name(),
|
db.globals.server_name(),
|
||||||
)
|
)
|
||||||
.ok()
|
.ok()
|
||||||
|
|
Loading…
Reference in a new issue