set not authenticated to redirect to login
This commit is contained in:
parent
ea7aa9815a
commit
f3ee998eee
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ private
|
|||
def require_user
|
||||
unless authenticated?
|
||||
flash[:warning] = "You must be logged in."
|
||||
store and redirect_to new_user_path
|
||||
store and redirect_to new_session_path
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue