summaryrefslogtreecommitdiff
path: root/src/invite/handlers/accept/test.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-24 03:48:17 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-24 04:51:24 -0400
commit4eb63b8adda4559df3dadcf721e2bb0d1f65a01f (patch)
tree4fc62e30770ec84be431a5dabc2aead3eaad88f9 /src/invite/handlers/accept/test.rs
parent1a0ee4af6538b5486d35730d480d00ca4d9edafb (diff)
Stop returning body data from `POST /api/auth/login`.
As with `/api/setup`, the response was an ad-hoc choice, which we are not using and which constrains future development just by existing.
Diffstat (limited to 'src/invite/handlers/accept/test.rs')
-rw-r--r--src/invite/handlers/accept/test.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/invite/handlers/accept/test.rs b/src/invite/handlers/accept/test.rs
index cb13900..7139985 100644
--- a/src/invite/handlers/accept/test.rs
+++ b/src/invite/handlers/accept/test.rs
@@ -47,11 +47,16 @@ async fn valid_invite() {
// Verify that the given credentials can log in
- let (login, _) = app
+ let secret = app
.tokens()
.login(&name, &password, &fixtures::now())
.await
.expect("credentials given on signup are valid");
+ let (_, login) = app
+ .tokens()
+ .validate(&secret, &fixtures::now())
+ .await
+ .expect("validating a newly-issued token secret succeeds");
assert_eq!(response, login);
}