diff --git a/app/src/main/java/eu/faircode/email/DaoIdentity.java b/app/src/main/java/eu/faircode/email/DaoIdentity.java index 66d66269e6..ccc564dcb9 100644 --- a/app/src/main/java/eu/faircode/email/DaoIdentity.java +++ b/app/src/main/java/eu/faircode/email/DaoIdentity.java @@ -119,7 +119,7 @@ public interface DaoIdentity { " SET password = :password, auth_type = :new_auth_type, provider = :provider" + " WHERE account = :account" + " AND user = :user" + - " AND (auth_type = :auth_type OR auth_type IS NULL)" + + " AND (auth_type = :auth_type OR :auth_type IS NULL)" + " AND NOT (password IS :password AND auth_type IS :new_auth_type AND provider = :provider)") int setIdentityPassword(long account, String user, String password, Integer auth_type, int new_auth_type, String provider);