Skip to content

Commit e05c9f4

Browse files
Improve log message when no CSRF token found
Closes gh-10436
1 parent bd42939 commit e05c9f4

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

Lines changed: 2 additions & 2 deletions
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.
@@ -26,7 +26,7 @@
2626
public class MissingCsrfTokenException extends CsrfException {
2727

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

3232
}

0 commit comments

Comments
 (0)