Complete login and registration system in ASP.NET MVC application

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 301

  • @pritimay17
    @pritimay17 2 роки тому

    Ami ei video ta 5 bochor aage dekhechilam.
    Tokhon college e Final year project e Thik korechilam MVC te korbo but MVC er byapare Zero knowledge chilo but iccha thakleo confidence chilo na tao neme porechilam... tokhon apnar ei video seriese chara ar kichu chilo na...
    Apnar help e egono suru... aj 5 bochore life onek bodle geche... jibone kichu dur egiyechi... tobe egiye jaoyar biswas suru apnar ei video theke... Dhonnobad apnake.

  • @adamschneider868
    @adamschneider868 6 років тому +3

    couple of notes. This is a great tutorial and is packed with actual practical knowledge. Except for a few things.
    1. You should check if the password is strong.
    2. You should check if the username exists.
    3. Just set the confirm password to null after you hash, you already performed the compare.
    also you should build your queries like this to avoid SqlInjection attacks.
    public static bool UsernameExists(string Username)
    {
    bool result = false;
    Models.UserRegistrationPasswordEntities db = new Models.UserRegistrationPasswordEntities();
    var queryResult = db.Users.SqlQuery("SELECT userName FROM User WHERE userName = @1", Username).ToList();
    // the ternary opertor is pretty awesome
    result = queryResult == null ? false : true;
    return result;
    }

  • @milindsatbhai6169
    @milindsatbhai6169 6 років тому +1

    Not just tutorial but also teaches how to program in MVC. Simply Great ..

  • @iBoolGuy
    @iBoolGuy 6 років тому +4

    Hello, great tutorial.
    I'm late to tell you about this, but the link for part 2 you provided in the description is wrong, make sure you update it because it's super helpful.
    Thanks for the great work again! :)

  • @BrackersProductions1
    @BrackersProductions1 4 роки тому

    Awesome, cannot thank you enough Sourav. Sound was a bit low at times but you explained what you were doing quite well and this worked for me after fixing a few errors. One thing to mention is that using a new gmail account to send a verification email requires allowing access for less secure apps on the gmail you created otherwise you will get an authentication error.

  • @sanjeevvishwakarma3982
    @sanjeevvishwakarma3982 7 років тому +1

    great work brother..you are awesome tutor..thanks for this ..keep uploading such type of videos

  • @mishimishu2765
    @mishimishu2765 7 років тому +1

    hooaaaah after some hardwork and retake on my code i got it welll done sourav nice tutorial nw heading towards the second part thanks May God Bless U

  • @engrqamarabbas9753
    @engrqamarabbas9753 7 років тому +13

    super tutorial..I love it.God Bless you..Ameen

  • @dndnegy73
    @dndnegy73 5 років тому

    Thank you so much it worked so far with me and I will watch the video again because it is very informative

  • @FernandoSanchez-us7gh
    @FernandoSanchez-us7gh 6 років тому

    Awesome tutorial. I didn't know nothing about forms authorization. Thanks. I subscribed. Sorry for my poor English. Greeting from Mexico.

  • @Mariner1889
    @Mariner1889 7 років тому +1

    Appreciate your work Sourav.want more advanced topic from u ..

  • @temelreis381
    @temelreis381 7 років тому

    This is a great tutorial WHEN i understand what you're saying...
    Unfortunately there are times where i have no idea what you are saying..

  • @kayodeshontan4895
    @kayodeshontan4895 6 років тому

    Awesome. It totally works. But we'll need more tutorials like this

  • @ambrishsharma2808
    @ambrishsharma2808 3 роки тому

    really very helpful video, much appreciated...

  • @efebaltaci958
    @efebaltaci958 5 років тому

    Thanks for tutorial it's really helped me. Thanks so much again. Thank you my friend.

  • @Nicetrycutiepie
    @Nicetrycutiepie 3 роки тому

    Great example Sourav

  • @sohilvaidya6668
    @sohilvaidya6668 6 років тому +1

    Superb tutorial......

  • @yogitathakur8447
    @yogitathakur8447 7 років тому

    You are the best ...... Thank you so much for your guidance

  • @AsifKhan-ue7di
    @AsifKhan-ue7di 5 років тому +1

    i have done all things, exception receiving "Validation failed for one or more entities" on dc.SaveChanges() where i am doing wrong?

  • @jjprasert1950
    @jjprasert1950 6 років тому +2

    I run web part : User/Registration success
    but click button create web show Error
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    Requested URL: /User/Registration

  • @hgnarola63
    @hgnarola63 6 років тому +1

    Thanks, Sourav for the great tutorial. It's very easy to understand.
    Looking forward to part 2, and link for the second part in your description is wrong.
    Please correct it.

  • @nphhh
    @nphhh 7 років тому

    thanks young man. nice tutorial. in the future, i hope u make advance topics. Thankss

  • @Nicetrycutiepie
    @Nicetrycutiepie 3 роки тому

    Excellent one Sourav bro.need more videos from you regularly so we gain enormous knowledge

  • @tothedust
    @tothedust 7 років тому +1

    Keep up the good work @sourav mondal

  • @azhariagand6930
    @azhariagand6930 7 років тому +1

    iam running my project then any error :
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

  • @chotcailon1192
    @chotcailon1192 4 роки тому +1

    "System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required" how to fix this

  • @yannismonastiriotis7067
    @yannismonastiriotis7067 2 роки тому

    Thank you very much for the video! Sorry but I do not understand what is the verifyUrl in SendVerificationLinkEmail method. My link does not work by the resource has not been found. Is it some view that you had done before . Thank you so much

  • @khanstudentfederation820
    @khanstudentfederation820 3 роки тому

    Great you help in my university project

  • @pierjade4792
    @pierjade4792 5 років тому

    Thank you for sharing this and keeping it simple

  • @dragonphoreal
    @dragonphoreal 5 років тому +1

    for some reason when I try to create a view for Registration with the User model, the model in the view file can not access the properties in UserMetaData.
    What could be the reason for this?

  • @prasadgond3097
    @prasadgond3097 7 років тому

    really awesome video , plz explain everything inside code......like generate hash for password

  • @mmuleselokela3150
    @mmuleselokela3150 4 роки тому

    Please help, after creating my model, nothing appears. Only MyModel.edmx shows. The .cs files don't show.

  • @magalychurata
    @magalychurata 4 роки тому

    Thank you so much Sourav Mondal.

  • @waheedkhan-ey6vm
    @waheedkhan-ey6vm 3 роки тому

    sir as your create database in app data can we create database not like that and usually create database in Sql server please help me how can we do like that

  • @DarrenLeeCSharp
    @DarrenLeeCSharp 5 років тому +2

    Maybe this could save hours for someone else:
    If you are getting this error, "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1", try the following methods below
    1) Ensure that your network does not block your application
    2) Go to Gmail Settings > Forwarding and POP/IMAP > IMAP Access > Enable IMAP
    3) Go to Google Account > Security > Less secure app access > On
    If the above still doesnt work, try changing to stronger password.
    Hope this helps!

  • @junaidjamal3309
    @junaidjamal3309 7 років тому +3

    hello Sourav
    i'm getting exception in my code at dc.SaveChanges()
    The exception is dbentityvalidationexception
    please help how can i solve this??

  • @mohammedkareem549
    @mohammedkareem549 5 років тому +1

    You don't need to add identity specification for "USERID" in database?

    • @razvan.h521
      @razvan.h521 5 років тому

      I got this problem too, when i try to register a new User I got error "IDENTITY_INSERT is set to OFF
      "

  • @rainvictorron2413
    @rainvictorron2413 5 років тому +1

    Why didnt you utilize the use of 3 tier layer architecture bro?.

  • @revajeeva9707
    @revajeeva9707 6 років тому +1

    brother,you didn't show when click on create button process, so i am lag on that process of my email verification application. so please help me.

  • @MajorLann
    @MajorLann 6 років тому

    Thank you very much! It was very helpful and clear

  • @alkistisskaleou6846
    @alkistisskaleou6846 5 років тому

    Has anyone noticed that on the part of sending email to user the video cuts off and while he starts with var scheme and var host, then those are deleted and replaced by something completely different with no explanation of why and what's the difference???

  • @sonal6688
    @sonal6688 7 років тому +2

    Sir i am getting this Error ! The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required?? what i do ???

  • @topollor6470
    @topollor6470 6 років тому

    hello #question if one of my fields is username and i want to validate if it exist or not do i apply the same method used to check if email exist ? only change variables from email to username?

  • @qasimatta1517
    @qasimatta1517 3 роки тому

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required how to resolve this issue on generate email check

  • @staticcrewofficial
    @staticcrewofficial 6 років тому

    Dear sourav mondal i have tried this tutorial but when i have clicked on controller to add view i have got different view code from you, what thing i have to set first in my development environment, i have visual studio 2012, with entity framework 5 installed. any thing else i need to install kindly guide me ???

  • @antimasingh7767
    @antimasingh7767 4 роки тому

    Hello sir ,i have also make mvc registration page but when i'm summited my form one exception throws ..

  • @eswarrao8600
    @eswarrao8600 5 років тому

    At 41:08 i'm unable to get my Entity name i.e MyDatabaseEntities. how to get that .i got struck there plz help
    @
    sourav mondal

  • @محمدالدريبي-ك9ح
    @محمدالدريبي-ك9ح 5 років тому

    Very Nice... Thank you a lot.

  • @bashful88
    @bashful88 7 років тому

    Nice tutorial... Thank you brother...

  • @mehuljadav6878
    @mehuljadav6878 3 роки тому

    can i verify email if my database have not collumn "activation code"?

  • @eocdmc2315
    @eocdmc2315 6 місяців тому

    Thankyou good job sir
    👋👋

  • @kothaakhil6166
    @kothaakhil6166 6 років тому

    how to create administration and user roles differently such that admin can view/add/users where users cant do it

  • @Busogirl17
    @Busogirl17 6 років тому

    Just awesome . thank you so much sir.

  • @youseg100
    @youseg100 3 роки тому

    I dont get drop down on my models 9:48

  • @jimjim1823
    @jimjim1823 6 років тому

    Just the best thank you very good tutorial! Subscribed

  • @nurudawud6042
    @nurudawud6042 3 роки тому

    Thankyou very match Sourav Modal

  • @rajchanpura
    @rajchanpura 7 років тому

    can i implement this using visual studio 2013? or i need vs2015 for this?

  • @unknownman1
    @unknownman1 7 років тому +5

    can you please make a tutorial video how to use login and registration templates in visual studio *please* ??

  • @dominikblazic8667
    @dominikblazic8667 7 років тому +1

    Awesome tutorial, very nicely explained. Thank you very much.

  • @tedbobit2762
    @tedbobit2762 5 років тому

    Thanks very much brother !!! God Bless you ..!!

  • @muqeetkhan7649
    @muqeetkhan7649 6 років тому

    a great tutorial man but please next time use high Voice

  • @jeffersonsalvador6893
    @jeffersonsalvador6893 7 років тому +1

    Good day. Your tutorial is very good :) I just want to ask if this tutorial is for online only? Thanks in advance :)

  • @abhishekSahu11011
    @abhishekSahu11011 7 років тому

    where's that vid u talk about ki it has simple explained login n regis cuz m beginner hope u reply sooon thank u

  • @HariKrishna-ps3oo
    @HariKrishna-ps3oo 7 років тому +1

    Hi Sourav,
    I'm getting this Exceptio. Please help me.
    The entity type User is not part of the model for the current context.'

    • @souravmondal45
      @souravmondal45  7 років тому +1

      have you created the entity model from your database? I have a User table in my database from where I got the User Model when I generate the Entity model from the database

    • @estefanidossantoscalero1047
      @estefanidossantoscalero1047 7 років тому

      did you ever resolve this error? cause i keep getting it and i cant find a solution

  • @ashutoshanandtiwari6606
    @ashutoshanandtiwari6606 5 років тому

    @32:53 what he said? reply please

  • @yashaswinisrirangarajan269
    @yashaswinisrirangarajan269 6 років тому

    The page gives an exception when clicked on register . The exception is : InvalidOperationException: The model item passed into the dictionary is of type 'System.Security.Principal.WindowsPrincipal', but this dictionary requires a model item of type 'InstructionalResource2.Models.User'. Please help..

  • @ketan.patel95
    @ketan.patel95 3 роки тому

    Awesome work.

  • @asifaish6853
    @asifaish6853 6 років тому

    System.InvalidOperationException: 'Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.' Sir Please Help me For Solve this Problum

  • @pedrolopes101
    @pedrolopes101 7 років тому

    Can someone help me out? Everytime i hash the password it gives me an error message on registration. I think it is because after the hashing the compare with confirm password doesnt work since they do not match anymore. Can someone tell me what i need to do to fix this issue?

  • @garriedaden4168
    @garriedaden4168 7 років тому

    Great job. Many thanks.

  • @lindokuhlenicholas3041
    @lindokuhlenicholas3041 7 років тому

    hi Sourav,
    i have been following your instruction but i don't receive the email with activation code, i used my email as "fromEmail" and and my password as "fromEmailPassword" but the application is giving me a success message after registration. how can i fix this issue?

  • @danielsetsoafia4891
    @danielsetsoafia4891 2 роки тому

    bro where chalk up u been, it is so cool

  • @pubglitelovers6082
    @pubglitelovers6082 3 роки тому

    I have a problem in last using function kindly help me out to resorve them

  • @yogeshvaidya5895
    @yogeshvaidya5895 6 років тому

    hi i did this as per your tutorial instructions , its should we run well as error messages,and date show and conform password ,but when i click on create button he through error
    Server Error in '/' Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    Requested URL: /User/Registration

  • @RickGtr271
    @RickGtr271 6 років тому

    Why not use the user management already in the framework?

  • @shineyphaiju5037
    @shineyphaiju5037 6 років тому +1

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
    Source Error:
    Line 128: IsBodyHtml = true
    Line 129: })
    Line 130: smtp.Send(message);
    Line 131: }
    Line 132: }
    got this error while trying to execute the page.
    everything else was good.
    how can i fix this?

  • @ashutoshkumar7347
    @ashutoshkumar7347 5 років тому

    Hi Sourav, Its not sending the email neither showing the error.

  • @hilariosimoes7776
    @hilariosimoes7776 7 років тому

    Cannot load the Data after publishing in my IIS machine. Any Help?

  • @icerexiomo6987
    @icerexiomo6987 7 років тому

    Hello sourav. Good day. Can you help me? Im having this error: Unable to cast object of type 'System.Int64' to type 'System.Array'.

  • @ranjanbajracharya8212
    @ranjanbajracharya8212 6 років тому

    Can any one help me with this error ' An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code ' in dc.SaveChanges();

  • @duttshiv1985
    @duttshiv1985 7 років тому

    simply awesome...

  • @wahajzafar6568
    @wahajzafar6568 6 років тому

    you have created it with default view i have added a registeration template now how its done

  • @nandhakumar7088
    @nandhakumar7088 5 років тому

    I don't have shared folder on my vs how to get it

  • @Shteyen
    @Shteyen Рік тому +1

    "Maybe this will come in handy for someone: If after running the program, you receive the error "System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required," you just need to set up two-step verification on the Gmail account of the sender and generate a special application password. Then, in "var fromEmailPassword," instead of your Gmail account password, you need to enter the "application password" previously generated and copied from the Google account settings.

  • @Akshaysharma-vv7ql
    @Akshaysharma-vv7ql 7 років тому

    great video ,this is what i was looking for, but i have read many places that salting should be a part of storing user passwords for security reasons. Have you any comments on this and could you show us if you think its important ?

  • @chandrawadud807
    @chandrawadud807 3 роки тому

    Hi sir what's version asp.net mvc for this tutorial? Thanks before

  • @syedranadjp
    @syedranadjp 5 років тому +1

    Server Error in '/' Application.The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. How I it solve.

    • @dndnegy73
      @dndnegy73 5 років тому

      Syed Rana I got the same error

    • @MukeshGupta-lj3lg
      @MukeshGupta-lj3lg 4 роки тому

      Any one who solve This error ..plz help Il

  • @buntysoni2282
    @buntysoni2282 3 роки тому

    Hello Sir, Thank You for Helpful Video.
    Sir I have one issue. When I add User.cs new class in new folder so this showing ambiguous error. Please help me in solving this issue sir

  • @Josh-xh9qn
    @Josh-xh9qn 7 років тому

    How did you get the Registration message to appear, mine doesn't?

  • @rajashekarmaddela2745
    @rajashekarmaddela2745 7 років тому

    Hi thanks for your video with the same application i want connect to postgre sql database and store the data in it, can u plz help me how to do it.

  • @p0parkour
    @p0parkour 7 років тому

    My user.ActivationCode doesn't work or the [Bind] doesn't bind . How do I fix this issue? Thanks

  • @juanefectivo
    @juanefectivo 7 років тому

    Thank you so much!!! Great tutorial!!

  • @syedahsanalishah5237
    @syedahsanalishah5237 6 років тому

    This error occurs when I have created an sql database in the backend.An acception occurs that is given below.
    An exception of type 'System.InvalidOperationException' occurred in System.ComponentModel.DataAnnotations.dll but was not handled in user code
    Additional information: The associated metadata type for type 'RegistrationAndLogin.Models.User' contains the following unknown properties or fields: DateOfBirth. Please make sure that the names of these members match the names of the properties on the main type.

  • @tonmoychoudhury4539
    @tonmoychoudhury4539 7 років тому

    Hi Sourav , I am facing an issue with rendering the Registration.cshtml view. Athough it's not showing any .net exception in the browser but the page remains blank.
    From the IntelliTrace window in VS 2012 I noticed that its throwing null pointer exception in the below line
    @Html.EditorFor(model => model.ConfirmPassword, new {htmlAttributes = new {@class="form-control"}})
    But not able to figure out why its throwing exception. Could you please shed some light on my issue. Struggling really hard for past 2 days

  • @utkarshsrivastava466
    @utkarshsrivastava466 7 років тому

    everything is fine...but when i submit details via create button....it throwing me an error with :An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code...............how to resolve this?

  • @tothedust
    @tothedust 7 років тому

    does this authorize in action and controller please help

  • @syedshabaz7760
    @syedshabaz7760 5 років тому

    sir nice video thank you . how to send multiple emails in timings

  • @aminebenchaou4099
    @aminebenchaou4099 7 років тому

    hello Sourav, thanks for sharing your knowledge. nicely explained. can u share an exemple of forgot password? thank u

  • @lisarajkarnikar5905
    @lisarajkarnikar5905 5 років тому

    the part 2 link in the description is incorrect. plz do update it

  • @tusharnautiyal8230
    @tusharnautiyal8230 3 роки тому

    Hi, I'm not getting validation messages