mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02: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)
|
* [Stefan Weil](https://github.com/stweil)
|
||||||
* [Steve Desmond](https://github.com/stevedesmond-ca)
|
* [Steve Desmond](https://github.com/stevedesmond-ca)
|
||||||
* [sydneyli](https://github.com/sydneyli)
|
* [sydneyli](https://github.com/sydneyli)
|
||||||
|
* [taixx046](https://github.com/taixx046)
|
||||||
* [Tan Jay Jun](https://github.com/jayjun)
|
* [Tan Jay Jun](https://github.com/jayjun)
|
||||||
* [Tapple Gao](https://github.com/tapple)
|
* [Tapple Gao](https://github.com/tapple)
|
||||||
* [Telepenin Nikolay](https://github.com/telepenin)
|
* [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. "
|
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 "
|
unsafe_suggestion = ("\n\nIf you really want to skip this, you can run "
|
||||||
"the client with --register-unsafely-without-email "
|
"the client with --register-unsafely-without-email "
|
||||||
"but make sure you then backup your account key from "
|
"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):
|
if util.safe_email(email):
|
||||||
return email
|
return email
|
||||||
if suggest_unsafe:
|
if suggest_unsafe:
|
||||||
msg += unsafe_suggestion
|
msg = unsafe_suggestion + msg
|
||||||
suggest_unsafe = False # add this message at most once
|
suggest_unsafe = False # add this message at most once
|
||||||
|
|
||||||
invalid = bool(email)
|
invalid = bool(email)
|
||||||
|
|||||||
Reference in New Issue
Block a user