Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed register page authentication #44

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions public/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@
<script>
const firstNameInput = document.getElementById('firstName');
const lastNameInput = document.getElementById('lastName');
const registerEmailInput = document.getElementById('registerEmail');
const registerPasswordInput = document.getElementById('registerPassword');
const registerEmailInput = document.getElementById('email');
const registerPasswordInput = document.getElementById('password');

// Function to clear input fields
function clearInputFields() {
Expand All @@ -186,7 +186,7 @@
console.log('User data:', userData);

try {
const response = await fetch('http://127.0.0.1:4001/register', {
const response = await fetch('http://localhost:4001/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down