From bcd800920314c13b4f01f7676161a3e9197a848b Mon Sep 17 00:00:00 2001 From: Jakob Nixdorf Date: Thu, 1 Feb 2018 10:08:25 +0100 Subject: [PATCH] Fix wrong password migration --- .../flocke/andotp/Activities/AuthenticateActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java index 9343b7cc..577d11bc 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java @@ -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();