projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Überflüssige "jquery-ui"-Einbindungen gelöscht
[kivitendo-erp.git]
/
SL
/
Dispatcher
/
AuthHandler
/
User.pm
diff --git
a/SL/Dispatcher/AuthHandler/User.pm
b/SL/Dispatcher/AuthHandler/User.pm
index
e1c080e
..
e126d87
100644
(file)
--- a/
SL/Dispatcher/AuthHandler/User.pm
+++ b/
SL/Dispatcher/AuthHandler/User.pm
@@
-18,7
+18,8
@@
sub handle {
$::locale = Locale->new($::myconfig{countrycode});
$::request->{layout} = SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
$::locale = Locale->new($::myconfig{countrycode});
$::request->{layout} = SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
- my $ok = $::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, $::form->{'{AUTH}password'}));
+ my $ok = $::auth->get_api_token_cookie ? 1 : 0;
+ $ok ||= $::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, $::form->{'{AUTH}password'}));
$ok ||= !$::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, undef));
return $self->_error(%param) if !$ok;
$ok ||= !$::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, undef));
return $self->_error(%param) if !$ok;