You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the user where the property referanced by `usernameKey` matches the `body.username` value.
110
110
// If no model is found, throw a 401 (Unauothorized) error.
111
-
letfutureUser=trySelf.query(on: request).filter(Self.usernameKey == body.username).first().unwrap(or:Abort(.unauthorized, reason:"Username or password is incorrect"))
111
+
letfutureUser=Self.query(on: request).filter(Self.usernameKey == body.username).first().unwrap(or:Abort(.unauthorized, reason:"Username or password is incorrect"))
0 commit comments