How to make extra validation in Spring Security login form?

后端 未结 3 1225
谎友^
谎友^ 2021-01-01 06:04

I wonder how to make extra validation on login form before it will be processed by Spring Security. I\'m thinking about some LoginController, LoginForm bean, but i don\'t kn

3条回答
  •  甜味超标
    2021-01-01 07:05

    Just adding more information on top of @sdouglass comment.

    On the filter you'll not have access to the form for binding purposes.

    I managed to get it with default validation by doing the following.

    https://gist.github.com/3137040

提交回复
热议问题