mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
improve wording
This commit is contained in:
parent
108b41842e
commit
e18bbd1cc4
1 changed files with 5 additions and 2 deletions
|
@ -58,14 +58,17 @@ def index():
|
||||||
flash(f"Email {gen_email.email} has been created", "success")
|
flash(f"Email {gen_email.email} has been created", "success")
|
||||||
session[HIGHLIGHT_GEN_EMAIL_ID] = gen_email.id
|
session[HIGHLIGHT_GEN_EMAIL_ID] = gen_email.id
|
||||||
else:
|
else:
|
||||||
flash(f"You need to upgrade your plan to create new email.", "warning")
|
flash(
|
||||||
|
f"You need to upgrade your plan to create new random alias.",
|
||||||
|
"warning",
|
||||||
|
)
|
||||||
|
|
||||||
elif request.form.get("form-name") == "create-custom-email":
|
elif request.form.get("form-name") == "create-custom-email":
|
||||||
if current_user.can_create_custom_email():
|
if current_user.can_create_custom_email():
|
||||||
return redirect(url_for("dashboard.custom_alias"))
|
return redirect(url_for("dashboard.custom_alias"))
|
||||||
else:
|
else:
|
||||||
flash(
|
flash(
|
||||||
f"You need to upgrade your plan to create new custom email.",
|
f"You need to upgrade your plan to create new custom alias.",
|
||||||
"warning",
|
"warning",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue