Revision a21cec52
Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt
SL/Dispatcher.pm | ||
---|---|---|
399 | 399 |
|
400 | 400 |
my $redirect_url = "controller.pl?action=${action}"; |
401 | 401 |
|
402 |
if ($action =~ m/LoginScreen\/user_login/) { |
|
402 |
if ( $action =~ m/LoginScreen\/user_login/ |
|
403 |
&& $params{action} |
|
404 |
&& 'get' eq lc($ENV{REQUEST_METHOD}) |
|
405 |
) { |
|
406 |
|
|
403 | 407 |
require SL::Controller::Base; |
404 | 408 |
my $controller = SL::Controller::Base->new; |
405 | 409 |
|
406 | 410 |
delete $params{error}; |
411 |
delete $params{routing_type}; |
|
407 | 412 |
delete @{ $::form }{ grep { m/^\{AUTH\}/ } keys %{ $::form } }; |
413 |
|
|
408 | 414 |
my $callback = $controller->url_for(%params, %{$::form}); |
409 | 415 |
$redirect_url .= '&callback=' . uri_encode($callback); |
410 | 416 |
} |
Auch abrufbar als: Unified diff
Login: Callback nur bauen bei GET-Request und wenn action vorhanden