subsurface/mobile-widgets
jan Iversen 4b713ece96 mobile UI/login: do not revert to old credentials.
If the user asked to change credentials it is equivalent to a signout,
so no need to store old credentials. This simplification allows removal
of the temporary credentials in qmlPrefs.

this commits secures the user is locked in the login page, until one
of 3 things happen:

- enter verified credentials (divelist is loaded from cloud)
- select no-cloud mode (divelist is loaded from local)
- enter new credentials, PIN page shows, enter PIN or
  cancel (back to enter credentials).

This is consistent even if the program is restarted.

Old version had a non consistent way:
A user enters new credentials,
  sees the PIN screen,
  but does not receive the email immediately,
  so works with other applications (causing the mobile app to close)

Having received the email with the PiN,
  the user starts mobile again,
  BUT does not see the PIN screen, instead the old credentials are used.

Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24 10:17:45 -08:00
..
qml mobile UI/login: do not revert to old credentials. 2019-12-24 10:17:45 -08:00
CMakeLists.txt build-system: Add CMakeLists.txt to mobile-widgets 2019-12-24 06:18:36 +09:00
qmlmanager.cpp mobile-widgets: make saveCredentials() an atom 2019-12-25 03:15:52 +09:00
qmlmanager.h mobile-widgets: make saveCredentials() an atom 2019-12-25 03:15:52 +09:00
qmlprefs.cpp mobile UI/login: do not revert to old credentials. 2019-12-24 10:17:45 -08:00
qmlprefs.h Revert the singleton PR 2019-09-27 16:26:58 -07:00