Fix wrong password migration

This commit is contained in:
Jakob Nixdorf 2018-02-01 10:08:25 +01:00
parent 49129462da
commit bcd8009203
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -158,7 +158,7 @@ public class AuthenticateActivity extends ThemedActivity
String hashedPassword = new String(Hex.encodeHex(DigestUtils.sha256(plainPassword)));
if (hashedPassword.equals(password)) {
byte[] key = settings.setAuthCredentials(password);
byte[] key = settings.setAuthCredentials(plainPassword);
if (key == null)
Toast.makeText(this, R.string.settings_toast_auth_upgrade_failed, Toast.LENGTH_LONG).show();