mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
New user will have mailbox enabled by default
This commit is contained in:
parent
66654a3635
commit
7e1119406d
1 changed files with 4 additions and 7 deletions
|
@ -167,13 +167,10 @@ class User(db.Model, ModelMixin, UserMixin):
|
|||
GenEmail.create_new(user.id, prefix="my-first-alias")
|
||||
db.session.flush()
|
||||
|
||||
# todo: uncomment when all existing users are full_mailbox
|
||||
# to run just after migrating all existing user to full mailbox
|
||||
# so new users are automatically full-mailbox
|
||||
# mb = Mailbox.create(user_id=user.id, email=user.email, verified=True)
|
||||
# db.session.flush()
|
||||
# user.full_mailbox = True
|
||||
# user.default_mailbox_id = mb.id
|
||||
mb = Mailbox.create(user_id=user.id, email=user.email, verified=True)
|
||||
db.session.flush()
|
||||
user.full_mailbox = True
|
||||
user.default_mailbox_id = mb.id
|
||||
|
||||
# Schedule onboarding emails
|
||||
Job.create(
|
||||
|
|
Loading…
Reference in a new issue