mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
make add3pid servlet work
This commit is contained in:
parent
0b1a8500a2
commit
f96ab9d18d
4 changed files with 81 additions and 11 deletions
|
@ -175,3 +175,14 @@ class RegistrationStore(SQLBaseStore):
|
|||
return rows[0]
|
||||
|
||||
return None
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def user_add_threepid(self, user_id, medium, address, validated_at, added_at):
|
||||
yield self._simple_upsert("user_threepids", {
|
||||
"user": user_id,
|
||||
"medium": medium,
|
||||
"address": address,
|
||||
}, {
|
||||
"validated_at": validated_at,
|
||||
"added_at": added_at,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue