Improve log message when no CSRF token found
Closes gh-10436
This commit is contained in:
parent
ff7f8f913d
commit
01be7eca6e
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2013 the original author or authors.
|
* Copyright 2002-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -25,6 +25,6 @@ package org.springframework.security.web.csrf;
|
||||||
public class MissingCsrfTokenException extends CsrfException {
|
public class MissingCsrfTokenException extends CsrfException {
|
||||||
|
|
||||||
public MissingCsrfTokenException(String actualToken) {
|
public MissingCsrfTokenException(String actualToken) {
|
||||||
super("Could not verify the provided CSRF token because your session was not found.");
|
super("Could not verify the provided CSRF token because no token was found to compare.");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue