mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
black
This commit is contained in:
parent
dbf0404aa9
commit
1524bb4e4b
2 changed files with 2 additions and 6 deletions
|
@ -207,9 +207,7 @@ def setting():
|
||||||
return redirect(url_for("dashboard.setting"))
|
return redirect(url_for("dashboard.setting"))
|
||||||
|
|
||||||
# make sure only default_random_alias_domain_id or default_random_alias_public_domain_id is set
|
# make sure only default_random_alias_domain_id or default_random_alias_public_domain_id is set
|
||||||
current_user.default_random_alias_public_domain_id = (
|
current_user.default_random_alias_public_domain_id = sl_domain.id
|
||||||
sl_domain.id
|
|
||||||
)
|
|
||||||
current_user.default_random_alias_domain_id = None
|
current_user.default_random_alias_domain_id = None
|
||||||
else:
|
else:
|
||||||
custom_domain = CustomDomain.get_by(domain=default_domain)
|
custom_domain = CustomDomain.get_by(domain=default_domain)
|
||||||
|
|
|
@ -523,9 +523,7 @@ class User(db.Model, ModelMixin, UserMixin):
|
||||||
return FIRST_ALIAS_DOMAIN
|
return FIRST_ALIAS_DOMAIN
|
||||||
|
|
||||||
if sl_domain.premium_only and not self.is_premium():
|
if sl_domain.premium_only and not self.is_premium():
|
||||||
LOG.exception(
|
LOG.exception("%s is not premium and cannot use %s", self, sl_domain)
|
||||||
"%s is not premium and cannot use %s", self, sl_domain
|
|
||||||
)
|
|
||||||
return FIRST_ALIAS_DOMAIN
|
return FIRST_ALIAS_DOMAIN
|
||||||
|
|
||||||
return sl_domain.domain
|
return sl_domain.domain
|
||||||
|
|
Loading…
Reference in a new issue