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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broke Login #127

Open
SnowBerryZ opened this issue Mar 25, 2023 · 3 comments
Open

Broke Login #127

SnowBerryZ opened this issue Mar 25, 2023 · 3 comments

Comments

@SnowBerryZ
Copy link

Your Template broke the Login Redirect after upgrade Yourls to 1.9.2 馃様

@ihrehelden
Copy link

has anyone already found a solution? If you call /admin/ again, the login works.

@likeaross
Copy link

This seems to have worked for me...
Near the bottom of user/plugins/sleekly-backend/plugin.php, change the line:

if (yourls_is_valid_user() != 1) {

to

if( defined( 'YOURLS_USER' ) ) {

@thompsonpaul
Copy link

Brilliant, @likeaross thank you! Your solution also fixed the login problem I was having with the 2FA plugin. Same behaviour as @ihrehelden where calling /admin/ again loaded the dashboard properly after getting the login error.

Coincidentally, it also seems to have fixed the conflict that was causing YOURLS to use the fallback JavaScript redirect method for ALL shortlinks causing a 200 response instead of the required 301-redirect when Sleeky is enabled and therefore breaking embeds etc.

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

3 participants