jobe-m / ownkeepass

ownKeepass is a password safe application for Sailfish OS. It is build on top of KeepassXC database sources.
GNU General Public License v2.0
34 stars 15 forks source link

Wrong password message after each reopening of the app #32

Open elutz opened 4 years ago

elutz commented 4 years ago

If I close the app and want to open it again with the last used database, the password isn't recognized, at least this suggests the error message I got. I have to repeat the whole process of opening a database, selecting database file, selecting keyfile, enter password. Then it works. Until I close the app ... This is with a database of type: Keypass 2

This is with Sailfish 3.1.0.11 (Seitseminen) on a Sony Xperia XA2

jobe-m commented 4 years ago

Hi Lutz,

it could be that you used previously a keepass database with the same name but without a key file. Please look into the config file of ownKeepass under /home/nemo/.config/harbour-ownkeepass/settings.ini and check in the "recentDatabases" list that the item for your database has a proper entry for "useKeyFile" and "keyFilePath". If not than ownKeepass is trying to open the database without a keyfile and that -of course- cannot work.

Could you tackle your problem down to this reason? If yes, than I can look into a proper fix for this situation. Thanks.

elutz commented 4 years ago

Sorry for the late answer. But your are right. In settings.ini I found wrong content, it pointed to the wrong keyfile. And if I remember right I used this wrong keyfile in the past, but corrected it afterwards. But opening the database with the right settings doesn't update the settings.ini Now I deleted the file, opened the database again and it works after closing and reopening the database. Regards Lutz

jobe-m commented 4 years ago

Thanks for your message. So it seems that there is a bug in updating the settings.ini file. I will look into it later.