Fix add_user query

This commit is contained in:
David Hoppenbrouwers
2022-10-09 14:51:52 +02:00
parent 1e7017a342
commit 650130d33c

View File

@@ -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)
) )