Posts

Email/User Name already Taken Remote Validation in asp.net core |Client Side Validations | Built in Validations From Data Annotations |Custom Validation

Image
Hello & As- salam  u  alikum  ! , In the previous articles we had discussed about Asp.net Core Identity Authorization and Allow Anonymous attribute, There is the reference in the below link. https://dotnetcorecommunity.blogspot.com/2019/11/authorization-in-aspnet-core-identity.html At the moment, we are going to discuss the Following concepts in this article J-query Client Side Validation Remote Validation Custom Validation Step#  1:     Perform the All steps that I have explained in the previous article,  Click Here  to see the previous article. Step#  2:     Right Click on the Project--> Add---> Client side Library  In the Library search box, type " jquery-validate " , you will get  intellisense & add the following Libraries as shown below. Step#  3:     Go to the view folder ---> Shared ---> Layout.cshtml & add these three scrip...

Authorization In Asp.net Core Identity | AllowAnonymous & Authorize Attribute in Asp.net Core | Set Authorization Globally

Image
Hello & As- salam  u  alikum  ! , In the previous articles we had discussed about Asp.net Core Identity  with Sign In ,Sign Up & Logout Functionalities, There is the reference in the below link. https://dotnetcorecommunity.blogspot.com/2019/11/implementing-login-logout-sign-up.html At the moment, we are going to discuss the Following concepts in this article Authorize Attribute Globally  Authorize Attribute on Controller  Authorize Attribute on Action lets begin with Practical : Step#  1:     Perform the All steps that I have explained in the previous article,  Click Here  to see the previous article. Step#  2:     First we are going to check the Authorize Attribute in Controller.we Have the following actions in our Home Controller.  Consider we are not willing to show our Privacy page to Anonymous user, so we will add [Authorize] attribute on the top of this ac...

Implementing Login Logout & Sign up Feature in Asp.net Core Identity using Sign in Manager | Login Log out show in Navigation Bar | Session Cookie Vs Persistence Cookie

Image
Hello & As- salam  u  alikum  ! , In the previous articles we had discussed about Asp.net Core Identity  , There is the reference in the below link. https://dotnetcorecommunity.blogspot.com/2019/11/implementing-aspnet-core-identity.html Now, We are going to make login and user Registration from, beside of these things we will see the difference b/w Session Cookies and persistence Cookies. Lets Understand this concept with Practical example. Step#  1:     Perform the All steps that I have explained in the previous article,  Click Here  to see the previous article. Step# 2 :     Add a two view models for Register and login. Login User Model  Register User Model using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace AspCoreIdentity.Models {     public class RegisterUserModel ...