mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
reorganized error message when a user entered an invalid email address
This commit is contained in:
@@ -237,6 +237,7 @@ Authors
|
||||
* [Stefan Weil](https://github.com/stweil)
|
||||
* [Steve Desmond](https://github.com/stevedesmond-ca)
|
||||
* [sydneyli](https://github.com/sydneyli)
|
||||
* [taixx046](https://github.com/taixx046)
|
||||
* [Tan Jay Jun](https://github.com/jayjun)
|
||||
* [Tapple Gao](https://github.com/tapple)
|
||||
* [Telepenin Nikolay](https://github.com/telepenin)
|
||||
|
||||
@@ -30,7 +30,7 @@ def get_email(invalid=False, optional=True):
|
||||
|
||||
"""
|
||||
invalid_prefix = "There seem to be problems with that address. "
|
||||
msg = "Enter email address (used for urgent renewal and security notices)"
|
||||
msg = "Enter email address (used for urgent renewal and security notices)\n"
|
||||
unsafe_suggestion = ("\n\nIf you really want to skip this, you can run "
|
||||
"the client with --register-unsafely-without-email "
|
||||
"but make sure you then backup your account key from "
|
||||
@@ -64,7 +64,7 @@ def get_email(invalid=False, optional=True):
|
||||
if util.safe_email(email):
|
||||
return email
|
||||
if suggest_unsafe:
|
||||
msg += unsafe_suggestion
|
||||
msg = unsafe_suggestion + msg
|
||||
suggest_unsafe = False # add this message at most once
|
||||
|
||||
invalid = bool(email)
|
||||
|
||||
Reference in New Issue
Block a user