only allow activated users in
This commit is contained in:
parent
7ed42e017e
commit
4b5170d6d9
|
@ -91,7 +91,7 @@ async def login(request):
|
|||
|
||||
async with request.app['pool'].acquire() as conn:
|
||||
user_info = await conn.fetchrow(
|
||||
"SELECT * FROM user_info WHERE username = $1",
|
||||
"SELECT * FROM user_info WHERE username = $1 AND active = TRUE",
|
||||
username)
|
||||
if user_info:
|
||||
has_cred = await conn.fetchrow(
|
||||
|
|
Loading…
Reference in New Issue
Block a user