Move logging level for validToken debugging from WARN to INFO. Fixes bug #11868
This commit is contained in:
parent
45e8cdc233
commit
65e2e0c3b1
2 changed files with 4 additions and 3 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- fixed #11855: Purging Shortcut from Trash causes loop
|
||||
- fixed #11865: URL with slash no longer works.
|
||||
- fixed #11861: addAttachment method removed from WebGUI 7 thus breaking the API
|
||||
- fixed #11868: WebGUI::Session::Form::validToken throws unnecessary warnings
|
||||
|
||||
7.10.0
|
||||
- fixed #11812: Checking www_ajaxSave's response in the cart js, urlencoding post parameters
|
||||
|
|
|
|||
|
|
@ -183,10 +183,10 @@ the one in this user's current session.
|
|||
sub validToken {
|
||||
my ($self) = @_;
|
||||
my $session = $self->session;
|
||||
$session->log->warn('HTTP method: '. $session->request->method);
|
||||
$session->log->warn('CSRF token: '. $session->scratch->get('webguiCsrfToken'));
|
||||
$session->log->info('HTTP method: '. $session->request->method);
|
||||
$session->log->info('CSRF token: '. $session->scratch->get('webguiCsrfToken'));
|
||||
return 0 unless $session->request->method eq 'POST';
|
||||
$session->log->warn('Web token: '. $self->param('webguiCsrfToken'));
|
||||
$session->log->info('Web token: '. $self->param('webguiCsrfToken'));
|
||||
return 0 unless $self->param('webguiCsrfToken') eq $session->scratch->get('webguiCsrfToken');
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue