Skip to content

Commit

Permalink
fix: as_cypress doesn't bypass the login page
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Jan 8, 2021
1 parent e9a4fcd commit 4d7b8db
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,7 @@ app.prepare().then(async () => {
})
);

if (
NO_AUTH ||
AS_ANALYST ||
AS_REPORTER ||
AS_CERTIFIER ||
AS_ADMIN ||
AS_CYPRESS
)
if (NO_AUTH || AS_ANALYST || AS_REPORTER || AS_CERTIFIER || AS_ADMIN)
server.post('/login', (req, res) => res.redirect(302, getRedirectURL(req)));
else
server.post('/login', keycloak.protect(), (req, res) =>
Expand Down

0 comments on commit 4d7b8db

Please sign in to comment.