On 1st run you wont have a db defined so you either: 1) manually define one and provide it in the conn string 2) add an "initial catalog:[yourdbnametocreate]" and have Database.EnsureCreated(); in the constructor of AppDbContext and EFCore will build the DB for you. bear in mind you can technically comment out that line after inital run.
very nice explanation , little brief theory clear the concept really outsanding. Can u make this video in .net 8 blazor or how can i implement this into blazor without using controller.
Identity provides default validation, which you see in the video. There is our own validation in AppUser model in the form of data annotations [ ] Also, in program.cs we have modified default password validation like what we need and what to avoid
@@IAmUmair I must have missed it in the video. Can you point to the time code where you added them? Like you, I started the project as an empty asp.web MVC app, and dont have those files that are shown. Thanks.
sorry for the late reply, and AppUser mention. Basically we have added data annotations in LoginVM (15:10) and RegisterVM (16:45). We have jquery validators by default "_ValidationScriptsPartial.cshtml" and they convert our server side validation into client side validation
Hi, I try to create from beginning in .net core 8. However, AppDBContext line stage itself throwing errorrs with namespaces etc. You source code has MVC name spaces included. Is it time waste going through your steps in .net core (8.0) version. I am a beginner, hence writing this comment. Don't mind. Understanding the past code, troubleshooting the errors are good practice. Milestone should also reach within the practice time given.
Hi @gobalv5314, This project was created for MVC template, and will work .NET 8 also. If there are any issues, please refer to the source code provided in the description. Hope so it'll help
Though the video is nice. It is straight forward and to the point however I did not understand - Why did you create LoginViewModel and RegisterViewModel. I mean, instead creating a ViewModel, they can be put into Model also.
Well it depends how you do the business... It could have been achieved through models, but my philosophy is that models are the replicas of database tables, so adding extra properties doesn't sound good. Therefore for model binding, view models are helpful.
I can, will soon make a video you can try adding navigation properties in models like you do in normal models, entity framework works for both scenarios in a similar way
If you're unlinking the layout, then buttons will not work, because scripts and styles aren't there. Another solution is to use styles and scripts in your view page individually, but this approach can lead to more design complications.
@saicharithvaitla880 You have to check your connection string and credentials. After that, you have to run the command `add-migration` to create migration code. After the migration code is generated, run this command to create a database and tables in the server `update-database`
@@IAmUmair hi brother i followed this playlist but i need to add api to this ruclips.net/video/Xuz9N7QWd_Q/видео.html project do you know how to add api to it. Help be appriciate it brother let me know Thanks
@@IAmUmairI think it’s a version conflict I’m using .net 8.03 and the word First in the add-migration didn’t work for me . I had to use Initial instead
thanks, Im searching for this type of tutorial and not using scaffolding one
thanks a lot!
Glad it was helpful!
I think you are really good teacher.....
thanks for the complement
Do you use Api in this project also can how can you use JWT and Api in login and registration in a MVC project
On 1st run you wont have a db defined so you either:
1) manually define one and provide it in the conn string
2) add an "initial catalog:[yourdbnametocreate]" and have Database.EnsureCreated(); in the constructor of AppDbContext and EFCore will build the DB for you.
bear in mind you can technically comment out that line after inital run.
Thanks for the help
@@IAmUmair look at add-migration for proper dB init and schema modifications.
hello sir, its really good video, its really helpful ..... for student
Thanks and welcome
Can u make video with authorize admin and user
this is the default setting creating projevt or not?
This is the custom settings
It was really helpful thanks a lot
Most welcome!
@@IAmUmair :)
Hi , thank you so much for the video.There were no errors and everything worked.Really appreciate it keep the good work up.
Welcome, and thanks
very nice explanation , little brief theory clear the concept really outsanding. Can u make this video in .net 8 blazor or how can i implement this into blazor without using controller.
Thanks,
sure, will make one in near future
Thank you so much for this video and how you explain everything. Can you please do one for autherization?
Welcome, sure coming up
hello bro, i have a problem on the project.
AppUser is not defined in applicationdbcontext. How can i solve this problem?
It's because you haven't defined AppUser in DbContext.
nice, ty, i tried to override basic asp.net identity, what better - full custom , or override all basic functionality?
thanks,
depends upon your requirements like what is needed - then implement that functionality
At 27mins 21secs, where did all the validation jQuery and partial scripts come from? I didn't see it covered in the video up to that point. Thanks.
Identity provides default validation, which you see in the video.
There is our own validation in AppUser model in the form of data annotations [ ]
Also, in program.cs we have modified default password validation like what we need and what to avoid
@@IAmUmair I must have missed it in the video. Can you point to the time code where you added them? Like you, I started the project as an empty asp.web MVC app, and dont have those files that are shown. Thanks.
sorry for the late reply, and AppUser mention.
Basically we have added data annotations in LoginVM (15:10) and RegisterVM (16:45).
We have jquery validators by default "_ValidationScriptsPartial.cshtml" and they convert our server side validation into client side validation
Brother Can you make a video on Role management?
Yes brother, working on it, will upload this soon
Waiting sir @@IAmUmair
Hi, I try to create from beginning in .net core 8. However, AppDBContext line stage itself throwing errorrs with namespaces etc. You source code has MVC name spaces included. Is it time waste going through your steps in .net core (8.0) version. I am a beginner, hence writing this comment. Don't mind. Understanding the past code, troubleshooting the errors are good practice. Milestone should also reach within the practice time given.
Hi @gobalv5314,
This project was created for MVC template, and will work .NET 8 also.
If there are any issues, please refer to the source code provided in the description.
Hope so it'll help
Though the video is nice. It is straight forward and to the point however I did not understand - Why did you create LoginViewModel and RegisterViewModel. I mean, instead creating a ViewModel, they can be put into Model also.
Well it depends how you do the business...
It could have been achieved through models, but my philosophy is that models are the replicas of database tables, so adding extra properties doesn't sound good. Therefore for model binding, view models are helpful.
Can you make a video to show how to create a table with a foreign key and primary key related to appuser
I can, will soon make a video
you can try adding navigation properties in models like you do in normal models, entity framework works for both scenarios in a similar way
How can i unlink the Layout from Login & Register page? If i write "Layout = null;", the buttons dont work!
If you're unlinking the layout, then buttons will not work, because scripts and styles aren't there.
Another solution is to use styles and scripts in your view page individually, but this approach can lead to more design complications.
Do you have any video related to managing roles etc?
It's in the pipeline, and will be coming up next time
I cannot connect to the database and creating it. Can you show it or create a video on that?
@saicharithvaitla880 You have to check your connection string and credentials. After that, you have to run the command `add-migration` to create migration code. After the migration code is generated, run this command to create a database and tables in the server `update-database`
I have videos on it, please check them out.
Mostly the issue comes up with the connection string, also make sure SQL server is installed
Thank you brother very helpful video 😊
Most welcome 😊
@@IAmUmair hi brother i followed this playlist but i need to add api to this ruclips.net/video/Xuz9N7QWd_Q/видео.html project do you know how to add api to it. Help be appriciate it brother let me know
Thanks
Please make video on three tier architecture and view data from multi models. Thank you
As soon as possible
@@IAmUmair Thank You and me waiting....
thank you for your video. it really great
You are welcome!
yeah its good but the database migration is a mess it did not work it can not store the registered account in the database
Username '' is invalid, can only contain letters or digits. I'm receiving this type of error, but I copy all cody.
Please provide a valid email for the username, it will get solved
If I have a function that is [required], will the logged in user have access to it?
Logged In users can access the resource when the Authorize attribute is defined, also you can define the if conditions for specific cases
How do you utilize this app with a API? This app connects directly to the database without going through a API?
This is a MVC application, that has UI design in it i.e Views
We can develop API endpoints using similar controller methods.
Thank very much Bro
Any time
At 30th minutes how did you remove async from loging? I'm getting error there
At the specified time, I don't think I've removed async.
Usually we use async Task when our code has Asynchronous methods calling await keywords.
brother please upload and create some video like Authorization with Authentication implement....
sure brother, very soon
Thank you soo much . But how can i Determine when logging in if an administrator opens a specific view and if a user opens a specific view
You're welcome,
I'll make a video on user roles next time.
@@IAmUmair i hope it thank you 🌹
have you already make it?@@IAmUmair
Hi sir, can you make video for login user details show in the index.html
Yes, soon
Very well described👌
Thanks a lot 😊
Thank you, very helpful.
You're welcome!
احسنت عملا . جزاء الله خيرا
جزاک اللہ
Thank you for the video.
Welcome
very help full thanks
Glad it helped
Plz share its code.. its sometimes tedious to write code and needed just an overview
Please check description, I've added the link to source code.
My register.cshtml page won't load i get a 405 error but my login page works fine
Can you plz double check the code, I've provided everything in the video and github source code
@@IAmUmairI think it’s a version conflict I’m using .net 8.03 and the word First in the add-migration didn’t work for me . I had to use Initial instead
thaank yoouu!!!
welcome
Is the data saved in the database?
yes
awesome... Thanks !!
Welcome
awesome video, thanks!!
Welcome
W Umair
How can i add new columns to the table
just like I added for the ApplicationUser by extending IdentityUser class
Thank you sir
Welcome
actually why in my case user name is invlid pura apko follow kiya fir v
Ye issue kb aata hai, thora flow btaa dien...
Register k time?
@@IAmUmair no no its solve
why my PasswordSignInAsync has redline, :(((
Check if you have used the await keyword, or if the method is async?
Turn microphone volume up or speak up please - thank you
Sure, will take care in the next videos
how to add Authorization(roles)
by creating roles, and assigning role to user.
will soon upload a video related to this
Thanks
Welcome
Thank you
You're welcome
and create video with admin lte theme impliment......
Ok coming soon
18:55
?
Mvc with ViewModels ?
Yes, video include ViewModels
Works! Great!
nice to hear, pleasure