删除弃用代码

This commit is contained in:
zhou-hao
2020-11-02 14:31:35 +08:00
parent 160507302f
commit 31567a1fb9
2 changed files with 2 additions and 21 deletions

View File

@@ -87,7 +87,6 @@ public class AuthorizationController {
Assert.hasLength(username_, "用户名不能为空");
Assert.hasLength(password_, "密码不能为空");
AuthorizationFailedEvent.Reason reason = AuthorizationFailedEvent.Reason.OTHER;
Function<String, Object> parameterGetter = parameters::get;
return Mono.defer(() -> {
AuthorizationDecodeEvent decodeEvent = new AuthorizationDecodeEvent(username_, password_, parameterGetter);
@@ -112,7 +111,7 @@ public class AuthorizationController {
}));
}));
}).onErrorResume(err -> {
AuthorizationFailedEvent failedEvent = new AuthorizationFailedEvent(username_, password_, parameterGetter, reason);
AuthorizationFailedEvent failedEvent = new AuthorizationFailedEvent(username_, password_, parameterGetter);
failedEvent.setException(err);
return failedEvent
.publish(eventPublisher)