From 8c127cfb956a97816a889c53dab32942a4b25ee8 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Fri, 27 Feb 2026 17:17:40 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=EB=AA=A8=EB=8B=AC=EC=97=90=20=EC=83=9D=EC=9D=BC=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /admin/user/ API에 birthday 필드 추가 - 카카오 인증 시 저장된 생일 정보 표시 - 🎂 MM월 DD일 형식으로 표시 --- backend/app.py | 5 +++-- backend/templates/admin.html | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/backend/app.py b/backend/app.py index bd5935e..42aba17 100644 --- a/backend/app.py +++ b/backend/app.py @@ -1248,7 +1248,7 @@ def admin_user_detail(user_id): # 2. 사용자 기본 정보 조회 cursor.execute(""" - SELECT id, nickname, phone, mileage_balance, created_at + SELECT id, nickname, phone, mileage_balance, created_at, birthday FROM users WHERE id = ? """, (user_id,)) user = cursor.fetchone() @@ -1477,7 +1477,8 @@ def admin_user_detail(user_id): 'phone': user['phone'], 'balance': user['mileage_balance'], 'created_at': utc_to_kst_str(user['created_at']), - 'is_kakao_verified': user['nickname'] != '고객' # 카카오 인증 여부 + 'is_kakao_verified': user['nickname'] != '고객', # 카카오 인증 여부 + 'birthday': user['birthday'] if user['birthday'] else None }, 'mileage_history': [ { diff --git a/backend/templates/admin.html b/backend/templates/admin.html index 6599b28..6e99e1d 100644 --- a/backend/templates/admin.html +++ b/backend/templates/admin.html @@ -882,6 +882,12 @@
가입일
${user.created_at}
+ ${user.birthday ? ` +
+
🎂 생일
+
${user.birthday.slice(0,2)}월 ${user.birthday.slice(2,4)}일
+
+ ` : ''}