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
0789f7e101
commit
3ae9d1fb7f
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ def post_login(form: SigninForm):
|
|||
flash_error(form.errors)
|
||||
return render_template('home/login.html', form=form)
|
||||
|
||||
check_user = ProviderUser.objects(email=form.email.data).first()
|
||||
email = form.email.data.lower()
|
||||
check_user = ProviderUser.objects(email=email).first()
|
||||
if not check_user:
|
||||
flash_error(gettext(u'User not found.'))
|
||||
return render_template('home/login.html', form=form)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue