Better description for re-authentication

This commit is contained in:
Jakob Nixdorf 2018-01-02 14:47:12 +01:00
parent 13db26f377
commit fc67640730
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC
2 changed files with 4 additions and 3 deletions

View file

@ -365,13 +365,13 @@ public class MainActivity extends BaseActivity
adapter.saveEntries(); adapter.saveEntries();
} else if (settings.getEncryption() == Constants.EncryptionType.PASSWORD) { } else if (settings.getEncryption() == Constants.EncryptionType.PASSWORD) {
encryptionType = Constants.EncryptionType.PASSWORD; encryptionType = Constants.EncryptionType.PASSWORD;
authenticate(R.string.auth_msg_confirm,true); authenticate(R.string.auth_msg_confirm_encryption,true);
} }
} else if (key.equals(getString(R.string.settings_key_auth)) || } else if (key.equals(getString(R.string.settings_key_auth)) ||
key.equals(getString(R.string.settings_key_auth_password_pbkdf2)) || key.equals(getString(R.string.settings_key_auth_password_pbkdf2)) ||
key.equals(getString(R.string.settings_key_auth_pin_pbkdf2))) { key.equals(getString(R.string.settings_key_auth_pin_pbkdf2))) {
if (encryptionType == Constants.EncryptionType.PASSWORD) if (encryptionType == Constants.EncryptionType.PASSWORD)
authenticate(R.string.auth_msg_confirm, true); authenticate(R.string.auth_msg_confirm_encryption, true);
} }
} }

View file

@ -8,7 +8,8 @@
<!-- Messages --> <!-- Messages -->
<string name="auth_msg_authenticate">Please authenticate to start andOTP!</string> <string name="auth_msg_authenticate">Please authenticate to start andOTP!</string>
<string name="auth_msg_confirm">Please confirm your authentication!</string> <string name="auth_msg_confirm_encryption">Please confirm your authentication to update the
encryption key!</string>
<!-- Toast messages --> <!-- Toast messages -->
<string name="auth_toast_password_missing">Please set a password in the settings!</string> <string name="auth_toast_password_missing">Please set a password in the settings!</string>