From fdbd0b594ca57eb3668f4425127f4dc16d3902f7 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 01 十二月 2021 10:27:41 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java b/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java
index 04f116a..427e102 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java
+++ b/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java
@@ -59,9 +59,7 @@
         		new UsernamePasswordAuthenticationToken(account, otpCode, grantedAuths);
 
         Map<String, String> details = new HashMap<>();
-        details.put(CustomerDetailEnum.ID.getValue(), customer.getId().toString());
-        details.put(CustomerDetailEnum.NAME.getValue(), customer.getName());
-
+        details.put(CustomerDetailEnum.DB_ID.getValue(), customer.getId().toString());
         authenticationToken.setDetails(details);
 
         return authenticationToken;

--
Gitblit v1.8.0