Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
updated entropi social to fix bug in authentication redirect
  • Loading branch information
Nicholas Watson committed May 9, 2012
commit 4b2b737c9d0169863b4ed0ca9895926a232ea2a3
15 changes: 8 additions & 7 deletions app/controllers/entropi_social/user_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ def new
end

def create
logger.info "*************************** WTF AM I DOING HERE ********************"

authenticate_user!



logger.info "*************************** Still HERE ********************"
if user_signed_in?
respond_to do |format|
format.html {
flash[:notice] = I18n.t("devise.sessions.signed_in")
redirect_to(root_path)
}
end
flash[:notice] = I18n.t("devise.sessions.signed_in")
redirect_to(root_path)
else
flash[:error] = I18n.t("devise.failure.invalid")
render :new
end

end

def destroy
Expand Down