so to describe , i have create a website with node.js (its not hosted) and i creaded a database with xampp(mysql) with 3 tabels , i added a register and login page , the register page it saves in databases the account created and the login get the info from it (because when i put the pasword wrong it told me i used a wrong pasword) , i added in header to get displayed the email connected , but it doesnt get the email, and when i look in that network ttab in console it says failed to fetch user data , (i only using email and pasword) . I want to work because i have to do the website to be interactive based by the type of user it have (user /superuser/owner) but now lets solve the not getting account thing .
the principal things on this will be the frontend code (header.js and login.js) and the backend code (database.js and user.js) the frontend code are in the same file and the backend code (both files ) are in the same folder , so like one is src and the one is backend .
#log in page
5 messages · Page 1 of 1 (latest)
I assume you do not intend to get the entire db but the currentUser only?
only the email yes (and if possible the name of the tabel they are in )
can you share your screen including code?
Yes i can share it, but not now