Browse Source

init

master
Lierbao 1 year ago
parent
commit
2151807e18
2 changed files with 14 additions and 1 deletions
  1. +12
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java
  2. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/password/PasswordLoginUserDetailService.java

+ 12
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java View File

@@ -0,0 +1,12 @@
package com.ningdatech.pmapi.user.manage;

import org.springframework.stereotype.Component;

/**
* @author liuxinxin
* @date 2023/1/3 上午10:57
*/

@Component
public class UserAuthLoginManage {
}

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/password/PasswordLoginUserDetailService.java View File

@@ -1,6 +1,7 @@
package com.ningdatech.pmapi.user.security.auth.password;


import com.ningdatech.pmapi.user.manage.UserAuthLoginManage;
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UserDetailsService;
@@ -16,7 +17,7 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor
public class PasswordLoginUserDetailService implements UserDetailsService {

// private final UserAuthLoginFacade userAuthLoginFacade;
private final UserAuthLoginManage userAuthLoginManage;

@Override
public UserInfoDetails loadUserByUsername(String username) throws UsernameNotFoundException {


Loading…
Cancel
Save