瀏覽代碼

Improve CSRF missing error message

Fixes gh-3738
Rob Winch 9 年之前
父節點
當前提交
40f687aa78

+ 1 - 1
web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java

@@ -25,6 +25,6 @@ package org.springframework.security.web.csrf;
 public class MissingCsrfTokenException extends CsrfException {
 
 	public MissingCsrfTokenException(String actualToken) {
-		super("Expected CSRF token not found. Has your session expired?");
+		super("Could not verify the provided CSRF token because your session was not found.");
 	}
 }