Update to code to Rust 1.67
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -70,11 +70,8 @@ impl<'a> Action<'a> {
|
||||
user.quick_identity()
|
||||
),
|
||||
Action::LoginWebauthnAttempt { success, user_id } => match success {
|
||||
true => format!(
|
||||
"successfully performed webauthn attempt for user {:?}",
|
||||
user_id
|
||||
),
|
||||
false => format!("performed FAILED webauthn attempt for user {:?}", user_id),
|
||||
true => format!("successfully performed webauthn attempt for user {user_id:?}"),
|
||||
false => format!("performed FAILED webauthn attempt for user {user_id:?}"),
|
||||
},
|
||||
Action::Signout => "signed out".to_string(),
|
||||
Action::UserNeed2FAOnLogin(user) => {
|
||||
@ -90,16 +87,14 @@ impl<'a> Action<'a> {
|
||||
"successfully authenticated as {}, but need to set a new password",
|
||||
user.quick_identity()
|
||||
),
|
||||
Action::TryLoginWithDisabledAccount(login) => format!(
|
||||
"successfully authenticated as {}, but this is a DISABLED ACCOUNT",
|
||||
login
|
||||
),
|
||||
Action::FailedLoginWithBadCredentials(login) => format!(
|
||||
"attempted to authenticate as {} but with a WRONG PASSWORD",
|
||||
login
|
||||
),
|
||||
Action::TryLoginWithDisabledAccount(login) => {
|
||||
format!("successfully authenticated as {login}, but this is a DISABLED ACCOUNT")
|
||||
}
|
||||
Action::FailedLoginWithBadCredentials(login) => {
|
||||
format!("attempted to authenticate as {login} but with a WRONG PASSWORD")
|
||||
}
|
||||
Action::UserChangedPasswordOnLogin(user_id) => {
|
||||
format!("set a new password at login as user {:?}", user_id)
|
||||
format!("set a new password at login as user {user_id:?}")
|
||||
}
|
||||
Action::OTPLoginAttempt { user, success } => match success {
|
||||
true => format!(
|
||||
@ -120,7 +115,7 @@ impl<'a> Action<'a> {
|
||||
"added a new factor to his account : {}",
|
||||
factor.quick_description(),
|
||||
),
|
||||
Action::Removed2FAFactor { factor_id } => format!("Removed his factor {:?}", factor_id),
|
||||
Action::Removed2FAFactor { factor_id } => format!("Removed his factor {factor_id:?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user