mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
ToLower for email
This commit is contained in:
parent
41c8b77a76
commit
0789f7e101
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class HomeView(FlaskView):
|
||||||
flash_error(form.errors)
|
flash_error(form.errors)
|
||||||
return render_template('home/register.html', form=form)
|
return render_template('home/register.html', form=form)
|
||||||
|
|
||||||
email = form.email.data
|
email = form.email.data.lower()
|
||||||
if not is_valid_email(email, False):
|
if not is_valid_email(email, False):
|
||||||
flash_error(gettext(u'Invalid email.'))
|
flash_error(gettext(u'Invalid email.'))
|
||||||
return render_template('home/register.html', form=form)
|
return render_template('home/register.html', form=form)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue