mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
use warning when user is out of quota
This commit is contained in:
parent
8f17cda794
commit
515b3510a8
1 changed files with 1 additions and 2 deletions
|
@ -50,8 +50,7 @@ def available_suffixes(user: User) -> [bool, str, str]:
|
||||||
def custom_alias():
|
def custom_alias():
|
||||||
# check if user has not exceeded the alias quota
|
# check if user has not exceeded the alias quota
|
||||||
if not current_user.can_create_new_alias():
|
if not current_user.can_create_new_alias():
|
||||||
# notify admin
|
LOG.warning("user %s tries to create custom alias", current_user)
|
||||||
LOG.error("user %s tries to create custom alias", current_user)
|
|
||||||
flash(
|
flash(
|
||||||
"You have reached free plan limit, please upgrade to create new aliases",
|
"You have reached free plan limit, please upgrade to create new aliases",
|
||||||
"warning",
|
"warning",
|
||||||
|
|
Loading…
Reference in a new issue