Revision 9687b466
Von Sven Schöling vor fast 4 Jahren hinzugefügt
SL/Auth.pm | ||
---|---|---|
574 | 574 |
sub restore_session { |
575 | 575 |
my $self = shift; |
576 | 576 |
|
577 |
$session_id = $::request->cgi->cookie($self->get_session_cookie_name());
|
|
577 |
$session_id = $::request->cookies->{$self->get_session_cookie_name};
|
|
578 | 578 |
$session_id =~ s|[^0-9a-f]||g if $session_id; |
579 | 579 |
|
580 | 580 |
$self->{SESSION} = { }; |
... | ... | |
951 | 951 |
sub get_api_token_cookie { |
952 | 952 |
my ($self) = @_; |
953 | 953 |
|
954 |
$::request->cgi->cookie($self->get_session_cookie_name(type => 'api_token'));
|
|
954 |
$::request->cookies->{$self->get_session_cookie_name(type => 'api_token')};
|
|
955 | 955 |
} |
956 | 956 |
|
957 | 957 |
sub is_api_token_cookie_valid { |
Auch abrufbar als: Unified diff
Auth: Cookie Parsing mit SL::Request