fix: 사용자 관리 시스템 백엔드 API 통합
- 사용자 목록 로드를 localStorage에서 AuthAPI.getUsers()로 변경 - 비밀번호 초기화를 localStorage 조작에서 AuthAPI.resetPassword()로 변경 - 사용자 삭제 기능 백엔드 API 연동 확인 - 사용자 추가/목록/삭제 모든 기능이 백엔드 DB와 동기화됨 - localStorage 하드코딩 문제 해결로 일관된 데이터 관리 구현 Fixes: - 사용자 추가 후 목록에 표시되지 않던 문제 - 비밀번호 초기화가 실제 DB에 반영되지 않던 문제 - 백엔드 API와 localStorage 간 데이터 불일치 문제
This commit is contained in:
@@ -125,6 +125,13 @@ const AuthAPI = {
|
||||
current_password: currentPassword,
|
||||
new_password: newPassword
|
||||
})
|
||||
}),
|
||||
|
||||
resetPassword: (userId, newPassword = '000000') => apiRequest(`/auth/users/${userId}`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({
|
||||
password: newPassword
|
||||
})
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user