Guest User

Untitled

a guest
Feb 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. unless logged_in?
  2. unless params[:captcha] && Digest::SHA1.hexdigest(params[:captcha].upcase.chomp)[0..5] == params[:captcha_guide]
  3. @item.errors.add("Word")
  4. render :action => 'new'
  5. return
  6. end
  7. end
Add Comment
Please, Sign In to add comment