1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-04 17:08:52 +01:00

Length of passwords consistently use the constant

This commit is contained in:
Dietrich 2022-06-19 06:56:51 +02:00
parent 6ef1e8c4f9
commit 7bee9c1c69

View file

@ -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!(