cypht icon indicating copy to clipboard operation
cypht copied to clipboard

If someone closes browser, and has unsaved changes to settings, attempt to warn user (was Profiles not saved)

Open ghost opened this issue 2 years ago • 3 comments

Brand new install on RHEL connecting to an IMAP server.

  • Created 3 new profiles.
  • The profiles work.
  • Log out-
  • Log in
  • Profiles gone.

This is a clean out-of-the-box install. Not sure what it's using for configuration data persistence. If it's "nothing", there should probably be a warning of some sort.

ghost avatar Oct 13 '21 22:10 ghost

Yeah, it should warn you on log out (Do you want to save setting? Yes/No)

Can you try Settings -> Save?

Thanks!

marclaporte avatar Oct 14 '21 23:10 marclaporte

Yeah, it should warn you on log out (Do you want to save setting? Yes/No)

Sorry, I needed to get webmail running so I nuked the install and don't have an instance to try it on.

FWIW, I think I remember the "add profile" screen already has a save button on it, so a second save shouldn't be needed.

ghost avatar Oct 14 '21 23:10 ghost

FWIW, I think I remember the "add profile" screen already has a save button on it, so a second save shouldn't be needed.

Actually it is :) Cypht encrypts persistent settings using your password as the basis for the encryption key. We can't save anything between logins unless you select to on logout (or before on the Settings -> Save page) because we don't have your password stored anywhere (by design).

jasonmunro avatar Oct 15 '21 15:10 jasonmunro

Done: https://github.com/cypht-org/cypht/pull/669

marclaporte avatar Apr 02 '24 15:04 marclaporte