diff options
author | fiaxh <git@mx.ax.lt> | 2018-11-16 16:27:31 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-11-16 09:29:34 -0600 |
commit | fa731a46235e7d6b46450f339539247d3671514b (patch) | |
tree | e0a41471479bc00a15ac1fefc029e5e71b616c68 /libdino/src/entity | |
parent | 45236d07bca544f44c0861d0df50c4b40e55a6dd (diff) | |
download | dino-fa731a46235e7d6b46450f339539247d3671514b.tar.gz dino-fa731a46235e7d6b46450f339539247d3671514b.zip |
Split login jid/password into two steps with checks
Diffstat (limited to 'libdino/src/entity')
-rw-r--r-- | libdino/src/entity/account.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/entity/account.vala b/libdino/src/entity/account.vala index 111fbf08..f7257b5a 100644 --- a/libdino/src/entity/account.vala +++ b/libdino/src/entity/account.vala @@ -44,6 +44,8 @@ public class Account : Object { } public void persist(Database db) { + if (id > 0) return; + this.db = db; id = (int) db.account.insert() .value(db.account.bare_jid, bare_jid.to_string()) |