Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def user_id
  2. return (session[:user_id] ? session[:user_id] : NOT_LOGGED_IN)
  3. end
  4.  
  5. # INSECURE: Although the function works fine it can be susceptive to
  6. # misuse since under the hood it sets a username to a non-user.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement