diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-13 23:18:00 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-13 23:18:00 +0200 |
commit | 532aadea3afaac7f03e412eb23cbe9587fa8b94a (patch) | |
tree | 903d7c851b0ade84ed056457d7d1f7711db60093 /src/main/java/de/pixart/messenger/persistance | |
parent | f7b14ad6179fadd999aac9afcf6b18a437032922 (diff) |
prevent users from editing their account jid after successful login
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java index b23212c83..07ff600d6 100644 --- a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java +++ b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java @@ -460,7 +460,8 @@ public class DatabaseBackend extends SQLiteOpenHelper { if (oldVersion < 37 && newVersion >= 37) { List<Account> accounts = getAccounts(db); for (Account account : accounts) { - account.setOption(Account.OPTION_REQURIES_ACCESS_MODE_CHANGE, true); + account.setOption(Account.OPTION_REQUIRES_ACCESS_MODE_CHANGE, true); + account.setOption(Account.OPTION_LOGGED_IN_SUCCESSFULLY, false); db.update(Account.TABLENAME, account.getContentValues(), Account.UUID + "=?", new String[]{account.getUuid()}); } |