Skip to content

Instantly share code, notes, and snippets.

@forced-request
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forced-request/d95879265157034f9751 to your computer and use it in GitHub Desktop.
Save forced-request/d95879265157034f9751 to your computer and use it in GitHub Desktop.
def create
user = Users.where(:username => params[:sessions][:username]).first
unless user.nil?
if user.password == compute
render :text => "Login Successfully"
else
render :text => NOT_EXISTS
end
else
render :text => NOT_EXISTS
end
end
private
def compute
100000000.times do;end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment