YunoHost-Apps / bookstack_ynh

BookStack package for YunoHost
https://www.bookstackapp.com/
GNU General Public License v3.0
12 stars 3 forks source link

401 error after changing YNH admin password. #121

Closed KnightNine closed 1 year ago

KnightNine commented 1 year ago

Describe the bug

I was changing the password to my admin account to something more secure and then tried to use bookstack which directed me to a 401 Authorization Required error. I have all my documentation on there so I can't uninstall and re-install. I tried updating Bookstack from 23.02.2~ynh2 (i think) to 23.05.2~ynh2 to see if that would fix it but to no avail. Hopefully bookstack eventually forgets my credentials and takes me to a login page, but if not, how would I fix this?

Capture

Context

Steps to reproduce

1) login to bookstack 2) change your admin account password through the webadmin's /yunohost/admin/#/users page (in my case this is the only account) 3) go back to the bookstack app and receive the error. 4) experience frustration.

I'm not sure how to do this:

Expected behavior

I suppose Bookstack should log me out and take me to the login page if my "credentials are invalid".

Logs

changed credentials: https://paste.yunohost.org/raw/upoyivupow then this which I presume was an auto backup: https://paste.yunohost.org/raw/kesovezego then updated bookstack: https://paste.yunohost.org/raw/yaguqoqepa

KnightNine commented 1 year ago

tried using a different device to use bookstack and it gives the same error, this is not client side.

KnightNine commented 1 year ago

Changing my password back to what it was fixes the issue, but I can't change my password then...☹

ericgaspar commented 1 year ago

Are you using LDAP authentication to connect to Bookstack?

KnightNine commented 1 year ago

Are you using LDAP authentication to connect to Bookstack?

@ericgaspar idk, is that a setting or something within the ynh webadmin or in bookstack?

I do have to login twice to get onto bookstack, once for my ynh account and again for the bookstack account in which the username and password are identical.

ericgaspar commented 1 year ago

Bookstack has two Authentication systems Standard : with email and password LDAP : your YunoHost admin name and pwd

KnightNine commented 1 year ago

@ericgaspar I guess so then since I need to login to ynh before logging in to bookstack. Can I turn it off somehow?

KnightNine commented 1 year ago

it eventually fixed itself after leaving it for a day...