claude rework

This commit is contained in:
2026-06-07 15:43:43 +02:00
parent a2e2ff141e
commit b4874ad318
63 changed files with 5945 additions and 1752 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
use super::jwt;
use actix_web::dev::ServiceRequest;
pub fn check_password(password: String) -> Result<String, &'static str> {
pub fn check_password(password: String) -> Result<i32, &'static str> {
match jwt::JwtToken::decode(password) {
Ok(_token) => Ok(String::from("passed")),
Ok(token) => Ok(token.user_id),
Err(message) => Err(message),
}
}
@@ -37,7 +37,7 @@ mod processes_test {
let result = check_password(password_string);
match result {
Ok(check) => assert_eq!("passed", check),
Ok(user_id) => assert_eq!(32, user_id),
_ => panic!("Check correct password failed."),
}
}