diff --git a/lenticular_cloud/views/auth.py b/lenticular_cloud/views/auth.py index 4de24a4..160aadd 100644 --- a/lenticular_cloud/views/auth.py +++ b/lenticular_cloud/views/auth.py @@ -134,7 +134,7 @@ async def login() -> ResponseReturnValue: return redirect(resp.redirect_to) form = LoginForm() if form.validate_on_submit(): - user = User.query.filter_by(username=form.data['name']).first() # type: Optional[User] + user = User.query.filter_by(username=form.data['name'].lower()).first() # type: Optional[User] if user: session['username'] = str(user.username) else: