Permalink
Browse files

Fix limit

  • Loading branch information...
rosylilly committed Oct 22, 2017
1 parent 2a88932 commit 6dcb723e74fdfd9c8e073a5e2edc7086b7bdae4f
Showing with 1 addition and 1 deletion.
  1. +1 −1 isubata/webapp/ruby/app.rb
@@ -125,7 +125,7 @@ def user
post '/login' do
name = params[:name]
statement = db.prepare('SELECT * FROM user WHERE name = ? LIMIT 1')
statement = db.prepare('SELECT * FROM user WHERE name = ?')
row = statement.execute(name).first
if row.nil? || row['password'] != Digest::SHA1.hexdigest(row['salt'] + params[:password])
return 403

0 comments on commit 6dcb723

Please sign in to comment.