mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-13 09:01:27 +08:00
优化双重验证
This commit is contained in:
@@ -110,6 +110,7 @@ public class AuthorizationController {
|
||||
eventPublisher.publishEvent(beforeEvent);
|
||||
// 验证通过
|
||||
Authentication authentication = authenticationManager.authenticate(new PlainTextUsernamePasswordAuthenticationRequest(username, password));
|
||||
|
||||
//触发授权成功事件
|
||||
AuthorizationSuccessEvent event = new AuthorizationSuccessEvent(authentication, parameterGetter);
|
||||
event.getResult().put("userId", authentication.getUser().getId());
|
||||
|
||||
Reference in New Issue
Block a user