feat: Adds project database tests.
All checks were successful
CI / Linux Tests (push) Successful in 5m24s
All checks were successful
CI / Linux Tests (push) Successful in 5m24s
This commit is contained in:
@@ -33,6 +33,11 @@ extension DatabaseClient.Users: TestDependencyKey {
|
||||
throw NotFoundError()
|
||||
}
|
||||
|
||||
// Verify the password matches the user's hashed password.
|
||||
guard try user.verifyPassword(request.password) else {
|
||||
throw Abort(.unauthorized)
|
||||
}
|
||||
|
||||
let token: User.Token
|
||||
|
||||
// Check if there's a user token
|
||||
|
||||
Reference in New Issue
Block a user