이메일 인증과 비밀번호 재설정 추가
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="./style/output.css?v=4.0.6" />
|
||||
<link rel="stylesheet" href="./style/output.css?v=4.0.12" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+KR:wght@400;700;900&display=swap" rel="stylesheet" />
|
||||
<title>회원가입 - UNIARE</title>
|
||||
</head>
|
||||
@@ -71,9 +71,8 @@
|
||||
username: document.getElementById('username').value,
|
||||
password,
|
||||
};
|
||||
const { token, user } = await UaDeckApi.register(body);
|
||||
UaDeckApi.saveAuth(token, user);
|
||||
location.href = '/';
|
||||
const result = await UaDeckApi.register(body);
|
||||
location.href = `/verify-email.html?email=${encodeURIComponent(result.email)}`;
|
||||
} catch (err) {
|
||||
errEl.textContent = err.message;
|
||||
errEl.classList.remove('hidden');
|
||||
|
||||
Reference in New Issue
Block a user