fix authentication

This commit is contained in:
dirgantarasiahaan
2023-05-25 14:54:43 +07:00
parent d50b2a8eef
commit c833f09200
8 changed files with 17 additions and 16 deletions
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@Service
@@ -65,7 +66,7 @@ public class LoginService implements BaseService<LoginRequest, LoginResponse> {
.username(userRoleView.getUsername())
.nama(userRoleView.getNama())
.role(userRoleView.getRole())
.accessMenu(null)
.accessMenu(new HashSet<>())
.build();
Map<String, Object> claims = new HashMap<>();