MERN Stack Employee Management System – Login Functionality & Authentication Setup (Part 2)

preview_player
Показать описание


What you'll learn:
Creating a responsive login page with Tailwind CSS.
Setting up protected routes in React using Private Routes.
Managing user login and logout states in AuthContext.
Ensuring role-based access to admin and employee dashboards.
This is a crucial part of the project to ensure a secure and smooth authentication flow for users. Make sure to follow along, and don't forget to check out the next videos where we’ll build the role-based admin and employee dashboards.

🔔 Subscribe for more tutorials in the series!

#MERNStack #EmployeeManagementSystem #ReactJS #NodeJS #MongoDB #LoginPage #Authentication #JWTAuthentication #WebDevelopment #ReactLogin #TailwindCSS #FullStackDevelopment
Рекомендации по теме
Комментарии
Автор

please make the source code available of your on free as we are student we cannot pay the price

SamipyaSamipya
Автор

hello muhammad yousaf there is missing in playlist in one video in adding leave buttons rejected approved and pending this video is missing can u upload this video

ateequllah
Автор

Hey bro as shown in second video style is not apply how to solve the problem

PSISVARUNK
Автор

hello my brother, i have followed your code and write it, when i tried to make a login page and i put the email and password of admin, it did not work, but in your video it works but how, i have followed all yours code . can you please help me .

MRFC-hx
Автор

46:46 i don't know what are you doing sir

abhineveash
Автор

Hello, server is connected and in terminal this is showing - PS C:\EMS\server> node --env-file=.env userSeed.js
PS C:\EMS\server> , but still i'm not able to see "ems" name database in mongodb after refreshing it, i'm making a project for my office HRMS and facing lots of issue, please help me.

kashp_moves
Автор

can you push the source code of this projet in github pleaase?

amine-ayedi
Автор

Bro i already purchased ur source code bro how to run bro can u plz tell

shreeja
Автор

Hi bro there is an problem with installing bcrypt. Im getting like warn deprecated and module is not supported.. what to do

siddhusekaran
Автор

bro help pls to solve this error: Error: Route.post() requires a callback function but got a [object Object] ;

const router = express.Router()
router.post("/login", login)
// router.post("/verify", authMiddleware, verify)
router.post('/verify', verify)

Tuhinnoor
Автор

I have problem when you add package.json
Nodemon --env-file=.env index.js

I have error after i will try
Nodemon index.js its work

After userSeed run then problem how to solve

adnanbaloch
Автор

pls added reset password and forget password in this project.

rezwanulhaque
Автор

Bro... I need help... I created a login logout system but my logout is not able to clear the cookies... Please help

anirudhkala
Автор

Hi Sir, may you please help me with this error on the console "Uncauht TypeError: Cannot read properties of null (reading AdminDashboard.jsx:8 'name'), admin name not display after login, any help please

jamesopoku
Автор

Hii bro i have a problem if I use react it's showing an error
i.e; React is defined but never used
Hw to solve bro

shreeja
Автор

Hii bro
While login it showing an error bro
Net:: ERR_CONNECTION_REFUSED lyk this it is cmng bro can u plz help me bro

shreeja