Skip to content

Commit

Permalink
Keep non ssh on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Mar 26, 2013
1 parent 15476aa commit 75c36c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/user_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ def destroy
if @user_session = UserSession.find
@user_session.destroy
reset_session
host = current_site.ssl_on_auth ? current_site.host : host_with_port
#flash.now[:notice] = _("Successfully logged out.")
redirect_to "http://#{host_with_port}#{params[:redirect] || home_path(:prefix => prefix)}"
redirect_to "http://#{host}#{params[:redirect] || home_path(:prefix => prefix)}"
else
redirect_to "http://#{host_with_port}#{home_path(:prefix => prefix)}"
redirect_to "http://#{host}#{home_path(:prefix => prefix)}"
end
end

Expand Down

0 comments on commit 75c36c1

Please sign in to comment.