Add the APIs required to change the time machine policy for users and organizations.
This commit is contained in:
parent
872539bdbf
commit
990739b1e5
3 changed files with 24 additions and 0 deletions
|
@ -937,6 +937,11 @@ def change_invoice_email(user, invoice_email):
|
|||
user.save()
|
||||
|
||||
|
||||
def change_user_tag_expiration(user, tag_expiration_s):
|
||||
user.removed_tag_expiration_s = tag_expiration_s
|
||||
user.save()
|
||||
|
||||
|
||||
def update_email(user, new_email, auto_verify=False):
|
||||
user.email = new_email
|
||||
user.verified = auto_verify
|
||||
|
|
Reference in a new issue