mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Set account/identity to insecure when updating and untrusted
This commit is contained in:
@@ -137,10 +137,10 @@ public interface DaoIdentity {
|
||||
int setIdentityPassword(long account, String user, String password, Integer auth_type, int new_auth_type, String provider);
|
||||
|
||||
@Query("UPDATE identity" +
|
||||
" SET fingerprint = :fingerprint" +
|
||||
" SET fingerprint = :fingerprint, insecure = :insecure" +
|
||||
" WHERE account = :account" +
|
||||
" AND NOT (fingerprint IS :fingerprint)")
|
||||
int setIdentityFingerprint(long account, String fingerprint);
|
||||
int setIdentityFingerprint(long account, String fingerprint, boolean insecure);
|
||||
|
||||
@Query("UPDATE identity SET last_connected = :last_connected WHERE id = :id AND NOT (last_connected IS :last_connected)")
|
||||
int setIdentityConnected(long id, long last_connected);
|
||||
|
||||
Reference in New Issue
Block a user