Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout (GET) and Login (POST) result in error if WINK_PATH is set to "/" #349

Open
jdecode opened this issue Jan 17, 2022 · 0 comments
Open

Comments

@jdecode
Copy link

jdecode commented Jan 17, 2022

If WINK_PATH is set to / in app/wink.php here:

'path' => env('WINK_PATH', '/')

Following are the issues:

  1. Login form when submitted ends up in an error (This page isn't working : ERR_INVALID_REDIRECT)
  2. Logout link takes to the URL /logout (without any base URL or IP, 127.0.0.1 or any other URL)

In Vue.js the path that is supposed to be in JS variable Wink.path which is set to / and logout directly takes you to /logout (without the base URL).

In LoginController > Login
redirect('/'.config('wink.path')) is the part that handles the post-login redirect, and wink.path being empty results in an error somehow.

Note : Using any non-empty path, like wink or blog or anything else, login/logout links work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant