09 - Create Custom Login Page & Login Method

Опубликовано: 11 Январь 2025
на канале: Code Hub
30
2

In this video, we take a step-by-step approach to building a custom login page for our ASP.NET Core MVC application, ensuring it is functional, visually appealing, and user-friendly.

Here's everything we cover:
• Designing the Custom Login Page:
We create a fully customized login form with fields for email, password, and a "Remember Me" checkbox, ensuring it follows modern UI/UX principles.

• Styling Login and Registration Pages:
Using CSS, we apply styling to the login and registration pages, making them responsive and consistent with the app's overall theme.

• Implementing the Login Logic:
We write a secure HTTP POST method in the controller to handle user authentication, validate credentials, and ensure proper redirection for successful and unsuccessful login attempts.

• Dynamic Menu Update:
Learn how to dynamically update the navigation bar by replacing "Login" and "Register" options with a "Logout" option once a user, particularly the admin, logs in.

• Admin Login Demonstration:
Finally, we log in as the admin user to demonstrate the entire process, showcasing the seamless switch from the login page to the logged-in state with proper role-based options.

By the end of this video, you'll not only have a custom login page but also understand how to integrate authentication with dynamic user experience, making your app more secure and intuitive for users.

-------------------------------------------------------------------------------------
Chapters:
00:06 Create Login Page
01:59 Add Login View In Account Controller
02:59 Add Styling To Login Page
04:10 Create Post Method To Handle Login Request
05:12 Test Login Method

-------------------------------------------------------------------------------------
Source Code: https://github.com/FLDevelopers/ASP.N...

-------------------------------------------------------------------------------------
Related Videos:
1. Create Custom Login, Registration, Email Verify And Forgot Password Pages In Asp.Net Core MVC App:    • Create Custom Login, Registration, Em...  
2. Create Role Based User Management API Using Dynamic Policies In Asp.Net Core Web API:    • Create User Management (Role Based) A...  
3. Create Role Based User Management App In Flutter With Asp.Net Core Web API as Backend From Scratch:    • Create User Management (Role Based) F...  
4. Create Wallpaper App In Flutter From Scratch Using Pexels API [Complete Tutorial]:    • Create Wallpaper App In Flutter From ...  
5. Create Camera App From Scratch In Flutter [with Flash, Camera Switching, Multiple Images Functions]:    • Create Camera App From Scratch In Flu...  
6. Connect Flutter With Asp.Net Core Web API To Run On Emulator & Real Device:    • Connect Flutter With Asp.Net Core Web...  

-------------------------------------------------------------------------------------
I hope, you'll like this video. If you have any question related to this video then ask in comments section without any hesitation.

Also Don't forget to like this video and also share it with your friends. Also don’t forget to subscribe our channel and also hit that notification bell to get the notification of our latest video.

-------------------------------------------------------------------------------------
Join WhatsApp Channel: https://whatsapp.com/channel/0029VaE0...
Check out our website: https://www.freetrained.com/
Facebook Page Link:   / free_trained  
Facebook Group Link:   / 1746009532359857  

Please Subscribe Our YouTube Channel For More interesting Videos And Don't Forget To Share Our Channel With Your Friends.

Note: *Please Turn Off Any Ad Blocker Software or add-on to support us.

#aspnetcore #mvc #custom #course #tutorial #programming #coding #csharp #code #login #registration #emailverification #changepassword #role #authentication #authorization #learning #learn