Return username and password to login form grails spring security

前端 未结 3 2161
说谎
说谎 2020-12-06 22:43

When a user fails authentication, I want the username and password to be returned to the form. I\'m using the spring security core plugin with Grails and Spring Security LD

3条回答
  •  有刺的猬
    2020-12-06 23:11

    From UsernamePasswordAuthenticationFilter javadoc:

    If you want to retain the username, cache it in a customized AuthenticationFailureHandler

    As for password there is no point to cache it, because it cannot be put back to form password field for security reasons.

提交回复
热议问题