Merge branch 'FE/PasswordResetAuthPage' into 'frontend'
[Front-End] fix: 인증번호 입력 시 다음 비밀번호에 인증번호가 남는 오류 수정 See merge request s11-webmobile1-sub2/S11P12A701!204
This commit is contained in:
commit
62fdec081a
@ -5,7 +5,6 @@ import styles from './PasswordResetAuthPage.module.css';
|
|||||||
import { usePasswordReset } from '../../hooks/api/usePasswordReset';
|
import { usePasswordReset } from '../../hooks/api/usePasswordReset';
|
||||||
|
|
||||||
export default function PasswordResetPage() {
|
export default function PasswordResetPage() {
|
||||||
// TODO: 비밀번호 변경 기능확인 후 최종 완성
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const email = location.state;
|
const email = location.state;
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -23,6 +22,7 @@ export default function PasswordResetPage() {
|
|||||||
setAuthError(false);
|
setAuthError(false);
|
||||||
verify(authNumRef.current.value, email)
|
verify(authNumRef.current.value, email)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
authNumRef.current.value = '';
|
||||||
setSentAuthNum(true);
|
setSentAuthNum(true);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user