fixed creating new users using userEditor

fix-creating-users
Marek Baczynski 2 years ago
parent cd224a685b
commit 81409dc448

@ -149,7 +149,7 @@ def alterUser(userID):
s = 'insert into users (username, password) ' s = 'insert into users (username, password) '
s += 'values (:name, :password);' s += 'values (:name, :password);'
s = text(s) s = text(s)
r = db_engine.execute(s,username=request.form['name'],password=request.form['password']); r = db_engine.execute(s,name=request.form['name'],password=request.form['password']);
r.close() r.close()
return '{"status":"ok"}' return '{"status":"ok"}'
else: else:

Loading…
Cancel
Save