summaryrefslogtreecommitdiff
path: root/src/user/handlers/login
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-24 16:00:45 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-25 22:42:49 -0400
commit6c65e97e49d1d56380aa7d71abb0394b08ff60ca (patch)
treefddb2511233a89c43ac9e4d45ba37bd333dd11e5 /src/user/handlers/login
parent5bc9dc01618421596d65a7046e46559a872c6693 (diff)
Return an identity, rather than the parts of an identity, when validating an identity token.
This is a small refactoring that's been possible for a while, and we only just noticed.
Diffstat (limited to 'src/user/handlers/login')
-rw-r--r--src/user/handlers/login/test.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/user/handlers/login/test.rs b/src/user/handlers/login/test.rs
index bdd1957..cb387ad 100644
--- a/src/user/handlers/login/test.rs
+++ b/src/user/handlers/login/test.rs
@@ -30,14 +30,13 @@ async fn correct_credentials() {
// Verify the semantics
- let validated_at = fixtures::now();
- let (_, validated_login) = app
+ let validated = app
.tokens()
- .validate(&secret, &validated_at)
+ .validate(&secret, &fixtures::now())
.await
.expect("identity secret is valid");
- assert_eq!(name, validated_login.name);
+ assert_eq!(name, validated.user.name);
}
#[tokio::test]