YunoHost-Apps / my_webapp_ynh

Custom Web app with SFTP access
GNU General Public License v3.0
47 stars 39 forks source link

Bug: Changing SFTP password in config panel is not working #126

Open CodeShakingSheep opened 9 months ago

CodeShakingSheep commented 9 months ago

Describe the bug

Changing the password in the config panel after installation doesn't have any effect. The newly set password isn't working and the old password is still working.

Context

Steps to reproduce

Change password in the config panel after installation and try to access via SFTP with the new password.

Expected behavior

Old password should stop working and new password should start working.

Tagadda commented 9 months ago

I think there's a strange behavior for this feature. Reading the ./scripts/config, I think that the password gets updated only when with_sftp changed to true. So changing the password without changing the state of with_sftp doesn't do anything.

Can you try to do this :

I think this way the password should change.

narFnarF commented 7 months ago

It seems like this weird workaround worked for me...