mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08: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
|
||||
alias.user_id = new_user.id
|
||||
|
||||
# set some fields back to default
|
||||
alias.disable_pgp = False
|
||||
alias.pinned = False
|
||||
|
||||
db.session.commit()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue