Make stricter distinction between password and app tokens

This commit is contained in:
Lennart
2025-04-14 18:00:07 +02:00
parent 34b20d4ead
commit 93b967093c
6 changed files with 37 additions and 22 deletions

View File

@@ -70,7 +70,7 @@ where
let user_id = auth.as_ref().user_id();
if let Some(password) = auth.as_ref().password() {
if let Ok(Some(user)) = auth_provider
.validate_user_token(user_id, password)
.validate_app_token(user_id, password)
.instrument(info_span!("validate_user_token"))
.await
{