lib/typus/authentication/session.rb in typus-3.0.12 vs lib/typus/authentication/session.rb in typus-3.1.0.rc1

- old
+ new

@@ -8,11 +8,12 @@ def authenticate if session[:typus_user_id] admin_user else - back_to = request.env['PATH_INFO'] unless [admin_dashboard_path, admin_path].include?(request.env['PATH_INFO']) - redirect_to new_admin_session_path(:back_to => back_to) + # back_to = request.env['PATH_INFO'] unless [root_path].include?(request.env['PATH_INFO']) + # redirect_to new_session_path(:back_to => back_to) + redirect_to new_admin_session_path end end def deauthenticate session[:typus_user_id] = nil