YunoHost-Apps / castopod_ynh

Castopod package for YunoHost
https://podlibre.org/
GNU General Public License v3.0
23 stars 7 forks source link

Cannot log in as admin after install #46

Closed mattbk closed 1 year ago

mattbk commented 2 years ago

Describe the bug

After I install the app using yunohost web interface or command line and go to domain.ltd/cp-admin, I cannot log in.

If I use the yunohost account defined as admin during install, the message is

Unable to log you in. Please check your password.

If I use another username, the message is

Unable to log you in. Please check your credentials.

Password, whether the one associated with that user account or the admin password defined during installation, doesn't seem to work.

Context

Steps to reproduce

Expected behavior

Password works and I can log in.

Logs

https://paste.yunohost.org/raw/wununebofa

mattbk commented 2 years ago

Figured it out. Admin passwords with spaces don't work; it only takes the first word. The password entered was daughter course help hope as generated by https://preshing.com/20110811/xkcd-password-generator/.

2021-10-20 21:43:10,572: DEBUG - + curl --silent --show-error --insecure --location --header 'Host: castopod.maindomain.tld' --resolve castopod.maindomain.tld:443:127.0.0.1 --data 'email=mattbk@maindomain.tld&username=mattbk&password=daughter' course help hope https://localhost/cp-install/create-superadmin --cookie-jar /tmp/ynh-castopod-cookie.txt --cookie /tmp/ynh-castopod-cookie.txt

It looks like $password here should be wrapped in some way: https://github.com/YunoHost-Apps/castopod_ynh/blob/08cfb4ee4f2e84e1ce911a501d74324d9048209c/scripts/install#L140

Additionally, although helpful in this case that the password is shared in the shareable log generated by yunohost, it probably shouldn't be (to protect people who reuse passwords). Hopefully this can be treated the same way as the domain name is (I can see the actual domain name in the local log, but when shared it is displayed as maindomain.tld).

matebitte commented 2 years ago

same thing for me, but my password generator generated Vaseline3+Abacus+Grievous and neither do Vaseline, Vaseline3 or Vaseline3AbacusGrievous work.

a simple password did.

schmidthausen commented 1 year ago

I tried using a simple password and it still doesn't work. ynh v. 11.0.9.15 app v.1.0.0-99~ynh2

demitasse-1 commented 1 year ago

I am having this issue. I just updated my castopod to 1.0.4~ynh1 and am unable to login or send a login link. I get the "whoops hit a snag" page. I deleted the installation and restored from a back up and am having the same problem. Any suggestions on how to troubleshoot this? I have a simple password without special characters or spaces