tsk-51: Code formatting
Some checks failed
Rust Build / Rustfmt (pull_request) Successful in 40s
Rust Build / Test Suite (pull_request) Failing after 39s
Rust Build / Check (pull_request) Failing after 1m3s
Rust Build / build (pull_request) Failing after 40s
Rust Build / Clippy (pull_request) Failing after 1m3s

This commit is contained in:
2025-08-06 19:14:15 -04:00
parent cfd61e203f
commit 34d3e66c7b
2 changed files with 29 additions and 34 deletions

View File

@@ -78,7 +78,8 @@ pub mod endpoint {
if hashing::verify_password(&payload.password, user.password.clone()).unwrap() {
// Create token
let key = icarus_envy::environment::get_secret_key().await;
let (token_literal, duration) = token_stuff::create_token(&key, &user.id).unwrap();
let (token_literal, duration) =
token_stuff::create_token(&key, &user.id).unwrap();
if token_stuff::verify_token(&key, &token_literal) {
let current_time = time::OffsetDateTime::now_utc();
@@ -122,7 +123,8 @@ pub mod endpoint {
match repo::service::valid_passphrase(&pool, &payload.passphrase).await {
Ok((id, _passphrase, _date_created)) => {
let key = icarus_envy::environment::get_secret_key().await;
let (token_literal, duration) = token_stuff::create_service_token(&key, &id).unwrap();
let (token_literal, duration) =
token_stuff::create_service_token(&key, &id).unwrap();
if token_stuff::verify_token(&key, &token_literal) {
let login_result = icarus_models::login_result::LoginResult {