Skip to content

Commit

Permalink
feat: switched to OTP auth first
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 24, 2024
1 parent 0b25866 commit 52cd84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/auth.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ describe("Confirm email", () => {

it("Redirects to login when unauthenticated", () => {
cy.visit("/confirm-email");
cy.location("pathname").should("eq", "/login");
cy.location("pathname").should("eq", "/login/otp");
// There should be a query param of redirect pointing to /confirm-email
cy.location("search").should("eq", "?redirect=/confirm-email");
});
Expand Down
2 changes: 1 addition & 1 deletion src/router/gates/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class extends baseGate {
route(): false | RouteLocationRaw {
// If the route was supposed to be login-otp, we should redirect to login-otp, else just login
return {
name: "login",
name: "login/otp",
};
}
}

0 comments on commit 52cd84d

Please sign in to comment.