Skip to content

Commit 01be7ec

Browse files
Improve log message when no CSRF token found
Closes gh-10436
1 parent ff7f8f9 commit 01be7ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,6 +25,6 @@
2525
public class MissingCsrfTokenException extends CsrfException {
2626

2727
public MissingCsrfTokenException(String actualToken) {
28-
super("Could not verify the provided CSRF token because your session was not found.");
28+
super("Could not verify the provided CSRF token because no token was found to compare.");
2929
}
3030
}

0 commit comments

Comments
 (0)