Skip to content

Commit

Permalink
🐛 remove GET /login from auth
Browse files Browse the repository at this point in the history
  • Loading branch information
BHesseldieck committed Feb 28, 2022
1 parent 6c8f776 commit 10f6c1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions packages/cli/src/UserManagement/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export function authenticationMethods(this: N8nApp): void {
// Manually check the existing cookie.
const cookieContents = req.cookies?.[AUTH_COOKIE_NAME] as string | undefined;

if (!cookieContents) {
throw new ResponseHelper.ResponseError('Missing n8n-auth cookie', undefined, 401);
}

let user: User;
if (cookieContents) {
// If logged in, return user
Expand Down
1 change: 0 additions & 1 deletion packages/cli/test/integration/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const ROUTES_REQUIRING_AUTHENTICATION: Readonly<string[]> = [
'PATCH /me/password',
'POST /me/survey',
'POST /owner',
'GET /login',
'GET /non-existent',
];

Expand Down

0 comments on commit 10f6c1f

Please sign in to comment.