summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-07-05 17:46:51 +0100
committerErik Johnston <erik@matrix.org>2016-07-05 17:46:51 +0100
commitbe3548f7e14f411b0bb4d176ea0977672ed58252 (patch)
treef9aed069a3a79bb8caccd80035d9be03b0bcc927 /synapse/storage/registration.py
parentFix for postgres (diff)
downloadsynapse-be3548f7e14f411b0bb4d176ea0977672ed58252.tar.xz
Remove spurious txn
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 232dcfd9eb..0a68341494 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -127,15 +127,6 @@ class RegistrationStore(SQLBaseStore):
 
         try:
             if was_guest:
-                txn.execute(
-                    "UPDATE users SET"
-                    " password_hash = ?,"
-                    " upgrade_ts = ?,"
-                    " is_guest = ?,"
-                    " admin = ?"
-                    " WHERE name = ?",
-                    (password_hash, now, 1 if make_guest else 0, admin, user_id,)
-                )
                 self._simple_update_one_txn(
                     txn,
                     "users",