mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
set some fields back to default
This commit is contained in:
parent
9030d8b543
commit
d4ac2da96a
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ def transfer(alias, new_user, new_mailboxes: [Mailbox]):
|
||||||
# now the alias belongs to the new user
|
# now the alias belongs to the new user
|
||||||
alias.user_id = new_user.id
|
alias.user_id = new_user.id
|
||||||
|
|
||||||
|
# set some fields back to default
|
||||||
|
alias.disable_pgp = False
|
||||||
|
alias.pinned = False
|
||||||
|
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue