fixed creating new users using userEditor #10

Merged
marek merged 1 commits from fix-creating-users into master 2 years ago

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