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

@@ -147,7 +147,15 @@ mod tests {
Err(rustical_store::Error::NotFound)
}
async fn validate_user_token(
async fn validate_password(
&self,
user_id: &str,
password: &str,
) -> Result<Option<rustical_store::auth::User>, rustical_store::Error> {
Err(rustical_store::Error::NotFound)
}
async fn validate_app_token(
&self,
user_id: &str,
token: &str,