@@ -240,11 +240,11 class ApplicationController < ActionController::Base | |||||
240 | if request.xhr? |
|
240 | if request.xhr? | |
241 | head :unauthorized |
|
241 | head :unauthorized | |
242 | else |
|
242 | else | |
243 |
redirect_to |
|
243 | redirect_to signin_path(:back_url => url) | |
244 | end |
|
244 | end | |
245 | } |
|
245 | } | |
246 | format.any(:atom, :pdf, :csv) { |
|
246 | format.any(:atom, :pdf, :csv) { | |
247 |
redirect_to |
|
247 | redirect_to signin_path(:back_url => url) | |
248 | } |
|
248 | } | |
249 | format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } |
|
249 | format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } | |
250 | format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } |
|
250 | format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } |
General Comments 0
You need to be logged in to leave comments.
Login now