feat: 계정정보 단순화 + 구글 계정 이름 변경 허용

- 계정정보: 아이디·가입유형 행 제거 (이름/이메일/권한만), '이름 변경' 버튼
- ProfileEdit: 소셜(구글) 계정은 비밀번호 재인증 없이 바로 이름만 변경
  (아이디/이메일 편집/비밀번호 변경 섹션은 LOCAL 전용으로 숨김)
- 백엔드 updateProfile 은 provider 무관하게 동작(변경 없음)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-27 23:53:32 +09:00
parent 85670a1b9f
commit f34980048b
2 changed files with 30 additions and 40 deletions
+1 -19
View File
@@ -7,15 +7,6 @@ const auth = useAuthStore()
const router = useRouter()
const u = computed(() => auth.user || {})
const isLocal = computed(() => (u.value.provider || 'LOCAL') === 'LOCAL')
const providerLabel = computed(() => {
switch (u.value.provider) {
case 'NAVER': return '네이버'
case 'LOCAL':
default: return '일반(아이디/비밀번호)'
}
})
const roleLabel = computed(() => (u.value.role === 'ADMIN' ? '관리자' : '일반회원'))
function goEdit() {
@@ -27,10 +18,6 @@ function goEdit() {
<div class="account-info">
<section class="card">
<div class="row">
<span class="k">아이디</span>
<span class="v">{{ u.loginId || '-' }}</span>
</div>
<div class="row">
<span class="k">이름</span>
<span class="v">{{ u.name || '-' }}</span>
@@ -39,18 +26,13 @@ function goEdit() {
<span class="k">이메일</span>
<span class="v">{{ u.email || '-' }}</span>
</div>
<div class="row">
<span class="k">가입유형</span>
<span class="v">{{ providerLabel }}</span>
</div>
<div class="row">
<span class="k">권한</span>
<span class="v">{{ roleLabel }}</span>
</div>
</section>
<button v-if="isLocal" type="button" class="primary-btn" @click="goEdit">정보변경</button>
<p v-else class="hint">소셜 로그인 계정은 앱에서 가입정보를 변경할 없습니다.</p>
<button type="button" class="primary-btn" @click="goEdit">이름 변경</button>
</div>
</template>