mirror of
https://github.com/simple-login/app.git
synced 2025-10-22 05:09:33 +08:00
replace linebreak in sanitize_email()
This commit is contained in:
parent
6eb7ebc338
commit
98264b14bc
1 changed files with 1 additions and 1 deletions
|
@ -63,5 +63,5 @@ def encode_url(url):
|
||||||
|
|
||||||
def sanitize_email(email_address: str) -> str:
|
def sanitize_email(email_address: str) -> str:
|
||||||
if email_address:
|
if email_address:
|
||||||
return email_address.lower().strip().replace(" ", "")
|
return email_address.lower().strip().replace(" ", "").replace("\n", " ")
|
||||||
return email_address
|
return email_address
|
||||||
|
|
Loading…
Add table
Reference in a new issue