Commit ced5f51c authored by Cool Fire's avatar Cool Fire

Fix sql query

parent 588233c2
Pipeline #1096 passed with stages
in 4 minutes and 31 seconds
......@@ -45,7 +45,7 @@ class SignupSite < Sinatra::Base
mysql = mysql_connect
if session.key?(:invite)
query = mysql.prepare 'SELECT * FROM invites where `key` = ? LIMIT 1'
record = query.execute(session[:username]).first
record = query.execute(session[:invite]).first
session[:parent] = Rack::Utils.escape_html(record['parent'])
else
insert = mysql.prepare 'INSERT INTO invites (`email`, `key`, `parent`) VALUES (?, ?, ?)'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment