Fix add_user query
This commit is contained in:
@@ -366,8 +366,9 @@ class DB:
|
|||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
c.execute('''
|
c.execute('''
|
||||||
insert into users(name, password, join_time)
|
insert into users(name, password, join_time)
|
||||||
values (lower(?), ?, ?)
|
select lower(?), ?, ?
|
||||||
where (select registration_enabled from config)
|
from config
|
||||||
|
where registration_enabled = 1
|
||||||
''',
|
''',
|
||||||
(username, password, time)
|
(username, password, time)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user