mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-09 06:11:04 +01:00
Merge branch 'password-length-consistency' into 'next'
Length of passwords consistently use the constant See merge request famedly/conduit!361
This commit is contained in:
commit
86b23338dd
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ async fn process_admin_command(
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let new_password = utils::random_string(20);
|
let new_password = utils::random_string(AUTO_GEN_PASSWORD_LENGTH);
|
||||||
|
|
||||||
match db.users.set_password(&user_id, Some(new_password.as_str())) {
|
match db.users.set_password(&user_id, Some(new_password.as_str())) {
|
||||||
Ok(()) => RoomMessageEventContent::text_plain(format!(
|
Ok(()) => RoomMessageEventContent::text_plain(format!(
|
||||||
|
|
Loading…
Reference in a new issue