mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-18 01:29:22 +00:00
user: Add name to app token
This commit is contained in:
@@ -54,7 +54,7 @@ impl AuthenticationProvider for TomlPrincipalStore {
|
||||
// Try app tokens first since they are cheaper to calculate
|
||||
// They can afford less iterations since they can be generated with high entropy
|
||||
for app_token in &user.app_tokens {
|
||||
if password_auth::verify_password(token, app_token).is_ok() {
|
||||
if password_auth::verify_password(token, &app_token.token).is_ok() {
|
||||
return Ok(Some(user));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user