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

connection via login form redirect awlays to login form #158

Open
ghost opened this issue Apr 29, 2023 · 1 comment
Open

connection via login form redirect awlays to login form #158

ghost opened this issue Apr 29, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 29, 2023

Describe the bug

The SSO authentication works great. But if I want to allow users to log in via the login page, that doesn't works properly.
from the kanboard user management interface, you can invite a user with his email. When this user comes via the link in the email, he can create an account, and log in. For that, I had to change config.php file like this : define('HIDE_LOGIN_FORM', false); to see the login form. So the registration works, but not the login.
I can log in, but I'm always redirected to the login form.

Context

  • Hardware: *VPS bought online
  • YunoHost version: 11.0.11
  • I have access to my server: *Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain:
      I change config.php file like this : define('HIDE_LOGIN_FORM', false); to see the login form.

Steps to reproduce

  1. install kanboard on a subdomain.
  2. go to the kanboard admin panel, with the admin user you've defined, and invite you with your email adress (Users management > invite people)
  3. then, click on the link you recieve in email. Normally, you comes on a page without registration form.
  4. to view the form, open the config.php file, and change define('HIDE_LOGIN_FORM', true); to false.
  5. Now, you can see the registration form. Complete it, and try to log in.
  6. you see that when you make a mistake, you can see the error on the login form, but if you do it well, you aren't redirected to dashboard, but login form.

Expected behavior

Just stop the redirection to the login form when the login is success, to access to the dashboard.

Logs

in the logs, any error, only logs of successfull authentications.

Screenshot

image

@ericgaspar
Copy link
Member

ericgaspar commented Oct 24, 2023

Try to remove the admin from this line in the config file:

define('REVERSE_PROXY_DEFAULT_ADMIN', '__ADMIN__');

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