Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/auth/signup/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const signupForm = document.getElementById("signup-form");

signupForm.onsubmit = () => {

const username = document.getElementById("password").username;
const username = document.getElementById("username").value;
const email = document.getElementById("email").value;
const password = document.getElementById("password").value;

Expand All @@ -23,6 +23,7 @@ signupForm.onsubmit = () => {
if (data.status == 200) {

Cookies.set('token', data.json.token);
alert("Email has been sent to you, Please view it to validate your email address. ( The email will expire in 4 days )")
window.location.href = "/dashboard";

} else if (data.status == 403) {
Expand Down