mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Make stricter distinction between password and app tokens
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user