|
|
@ -93,10 +93,9 @@ def handle_authentication(headers):
|
|
|
|
app.logger.warn(f'Received undecodable user/password from nginx: {raw_user_email!r}/{raw_password!r}')
|
|
|
|
app.logger.warn(f'Received undecodable user/password from nginx: {raw_user_email!r}/{raw_password!r}')
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
user = models.User.query.get(user_email)
|
|
|
|
if '@' in user_email:
|
|
|
|
is_valid_user = True
|
|
|
|
user = models.User.query.get(user_email)
|
|
|
|
except ValueError:
|
|
|
|
is_valid_user = True
|
|
|
|
pass
|
|
|
|
|
|
|
|
except sqlalchemy.exc.StatementError as exc:
|
|
|
|
except sqlalchemy.exc.StatementError as exc:
|
|
|
|
exc = str(exc).split('\n', 1)[0]
|
|
|
|
exc = str(exc).split('\n', 1)[0]
|
|
|
|
app.logger.warn(f'Invalid user {user_email!r}: {exc}')
|
|
|
|
app.logger.warn(f'Invalid user {user_email!r}: {exc}')
|
|
|
|