🏗️ 结构调整

pull/80/head
awenes 2024-02-04 21:26:18 +08:00
parent 06f2b312a1
commit fa8963f200
9 changed files with 11 additions and 10 deletions

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.handler;
package cn.topiam.employee.console.authentication;
import java.io.IOException;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.handler;
package cn.topiam.employee.console.authentication;
import java.io.IOException;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.listener;
package cn.topiam.employee.console.authentication;
import java.util.Optional;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.handler;
package cn.topiam.employee.console.authentication;
import org.apache.commons.lang3.StringUtils;
import org.springframework.http.HttpStatus;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.listener;
package cn.topiam.employee.console.authentication;
import org.springframework.context.ApplicationListener;
import org.springframework.lang.NonNull;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.handler;
package cn.topiam.employee.console.authentication;
import java.util.List;
@ -79,7 +79,8 @@ public class ConsoleAuthenticationSuccessHandler implements AuthenticationSucces
//更新认证次数
updateAuthSuccessCount(authentication);
//记录审计日志
List<Target> targets = Lists.newArrayList(Target.builder().type(TargetType.CONSOLE).build());
List<Target> targets = Lists
.newArrayList(Target.builder().type(TargetType.CONSOLE).build());
auditEventPublish.publish(LOGIN_CONSOLE, authentication, EventStatus.SUCCESS, targets);
//响应
HttpResponseUtils.flushResponseJson(response, HttpStatus.OK.value(), result);

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.listener;
package cn.topiam.employee.console.authentication;
import java.util.List;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.handler;
package cn.topiam.employee.console.authentication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.console.security.listener;
package cn.topiam.employee.console.authentication;
import org.springframework.http.HttpStatus;
import org.springframework.security.web.session.SessionInformationExpiredEvent;