raise generated passwords to 25 chars
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
2b031e40a2
commit
2f16726bac
3 changed files with 4 additions and 3 deletions
|
@ -50,3 +50,4 @@
|
||||||
- Fixed spec compliance issue with room version 8 - 11 joins (https://github.com/matrix-org/synapse/issues/16717 / https://github.com/matrix-org/matrix-spec/issues/1708)
|
- Fixed spec compliance issue with room version 8 - 11 joins (https://github.com/matrix-org/synapse/issues/16717 / https://github.com/matrix-org/matrix-spec/issues/1708)
|
||||||
- Add basic cache eviction for true destinations when requests fail if we use a cached destination (e.g. a server has modified their well-known and we're still connecting to the old destination)
|
- Add basic cache eviction for true destinations when requests fail if we use a cached destination (e.g. a server has modified their well-known and we're still connecting to the old destination)
|
||||||
- Only follow 6 redirects total in our default reqwest ClientBuilder
|
- Only follow 6 redirects total in our default reqwest ClientBuilder
|
||||||
|
- Generate passwords with 25 characters instead of 15
|
||||||
|
|
|
@ -71,4 +71,4 @@ pub use voip::*;
|
||||||
pub const DEVICE_ID_LENGTH: usize = 10;
|
pub const DEVICE_ID_LENGTH: usize = 10;
|
||||||
pub const TOKEN_LENGTH: usize = 32;
|
pub const TOKEN_LENGTH: usize = 32;
|
||||||
pub const SESSION_ID_LENGTH: usize = 32;
|
pub const SESSION_ID_LENGTH: usize = 32;
|
||||||
pub const AUTO_GEN_PASSWORD_LENGTH: usize = 15;
|
pub const AUTO_GEN_PASSWORD_LENGTH: usize = 25;
|
||||||
|
|
|
@ -622,7 +622,7 @@ impl Service {
|
||||||
|
|
||||||
// Inhibit login does not work for guests
|
// Inhibit login does not work for guests
|
||||||
RoomMessageEventContent::text_plain(format!(
|
RoomMessageEventContent::text_plain(format!(
|
||||||
"Created user with user_id: {user_id} and password: {password}"
|
"Created user with user_id: {user_id} and password: `{password}`"
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
UserCommand::Deactivate {
|
UserCommand::Deactivate {
|
||||||
|
@ -699,7 +699,7 @@ impl Service {
|
||||||
.set_password(&user_id, Some(new_password.as_str()))
|
.set_password(&user_id, Some(new_password.as_str()))
|
||||||
{
|
{
|
||||||
Ok(()) => RoomMessageEventContent::text_plain(format!(
|
Ok(()) => RoomMessageEventContent::text_plain(format!(
|
||||||
"Successfully reset the password for user {user_id}: {new_password}"
|
"Successfully reset the password for user {user_id}: `{new_password}`"
|
||||||
)),
|
)),
|
||||||
Err(e) => RoomMessageEventContent::text_plain(format!(
|
Err(e) => RoomMessageEventContent::text_plain(format!(
|
||||||
"Couldn't reset the password for user {user_id}: {e}"
|
"Couldn't reset the password for user {user_id}: {e}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue