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"))
|
||||
|
||||
# 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 = (
|
||||
sl_domain.id
|
||||
)
|
||||
current_user.default_random_alias_public_domain_id = sl_domain.id
|
||||
current_user.default_random_alias_domain_id = None
|
||||
else:
|
||||
custom_domain = CustomDomain.get_by(domain=default_domain)
|
||||
|
|
|
@ -523,9 +523,7 @@ class User(db.Model, ModelMixin, UserMixin):
|
|||
return FIRST_ALIAS_DOMAIN
|
||||
|
||||
if sl_domain.premium_only and not self.is_premium():
|
||||
LOG.exception(
|
||||
"%s is not premium and cannot use %s", self, sl_domain
|
||||
)
|
||||
LOG.exception("%s is not premium and cannot use %s", self, sl_domain)
|
||||
return FIRST_ALIAS_DOMAIN
|
||||
|
||||
return sl_domain.domain
|
||||
|
|
Loading…
Reference in a new issue