mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 20:57:51 +00:00
update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-01-23 07:53:01
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-05-21 16:28:21
|
||||
* @LastEditTime: 2025-07-09 20:26:59
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -59,7 +59,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
|
||||
|
||||
@Override
|
||||
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
|
||||
log.debug("loadUserByUsername {}", username);
|
||||
// log.debug("loadUserByUsername {}", username);
|
||||
//
|
||||
Optional<UserEntity> userOptional = findByUsernameAndPlatform(username, PlatformEnum.BYTEDESK.name());
|
||||
if (!userOptional.isPresent()) {
|
||||
@@ -74,7 +74,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
|
||||
public UserDetails loadUserByUsernameAndPlatform(String subject) {
|
||||
String username = JSON.parseObject(subject, JwtSubject.class).getUsername();
|
||||
String platform = JSON.parseObject(subject, JwtSubject.class).getPlatform();
|
||||
log.debug("loadUserByUsername {}, username {}, platform {}", subject, username, platform);
|
||||
// log.debug("loadUserByUsername {}, username {}, platform {}", subject, username, platform);
|
||||
//
|
||||
Optional<UserEntity> userOptional = findByUsernameAndPlatform(username, PlatformEnum.fromValue(platform).name());
|
||||
if (!userOptional.isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user