getlantern/lantern — Issue #132: Switch user fails when password is stored
Author: forkner
Created: 2012-01-26 18:18:32+00:00
State: open
Labels: ARENDT, dashboard

Sign in still seems to defer to the stored password even when the user specifically inputs something. It will always send back nothing if there is a stored password even if you enter something. This makes for screwy behaviors when switching users:

* sign in and store a saved password
* switch users
* sign in with correct alternate email/password
* it will fail (first time only)
in this case the first submission of your new email/password will submit nothing for the password because the dashboard believes there is a stored password and always submits this instead. (you haven't logged out yet, it just calls signin) The next time it will work because the setting will be cleared out by the failed login / change to email address.

There are some directly related janky behaviors if you try to sign out / sign in and input a different password that what is stored. Though a more rare case, try:

* sign in with stored password
* without logging out, change google password
* sign out of lantern
* sign into lantern
* enter new password

Again this will fail the first time because the dashboard will submit a blank password to the backend due to the stored password. It will work the next time because the password will be cleared out by the failed login.