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:
|
async with request.app['pool'].acquire() as conn:
|
||||||
user_info = await conn.fetchrow(
|
user_info = await conn.fetchrow(
|
||||||
"SELECT * FROM user_info WHERE username = $1",
|
"SELECT * FROM user_info WHERE username = $1 AND active = TRUE",
|
||||||
username)
|
username)
|
||||||
if user_info:
|
if user_info:
|
||||||
has_cred = await conn.fetchrow(
|
has_cred = await conn.fetchrow(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user