When upgrading your account if you write Abc@email.com instead of abc@email.com
The email varification will fail.
@classmethod
def find_last_code(cls, email):
"""Return the last code object for the given email, or None if not found"""
return cls.query.filter(cls.email == email).order_by(cls.time.desc()).first()
You get this error but only when you are trying to confirm you password. This is not intuitive. As the correct error messages is not displayed either

When upgrading your account if you write Abc@email.com instead of abc@email.com
The email varification will fail.
You get this error but only when you are trying to confirm you password. This is not intuitive. As the correct error messages is not displayed either
