Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jin Botol 134 posts 287 karma points
    May 03, 2018 @ 09:33
    Jin Botol
    0

    Change registerModel of Umbraco to customModel on UmbracoIdentity

    Hi all, good day!

    I am new in Umbraco.

    I have already installed UmbracoIdentity 6.0 package. And I want to use my CustomModel OR the standard RegisterViewModel of UmbracoIdentity instead of RegisterModel of Umbraco.Web.Models.

    Because I want to add ConfirmPassword and also add the users FullName in MemberType

    Appreciate any help!

    Jin

  • Sven Vervloet 10 posts 81 karma points
    May 03, 2018 @ 10:07
    Sven Vervloet
    0

    Why would that be a problem? You send the formdata to a surfacecontroller, where you accept it through a custom model.

    [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Register(RegisterVm model)
    
  • Jin Botol 134 posts 287 karma points
    May 04, 2018 @ 03:26
    Jin Botol
    0

    Hi Sven,

    Thanks for you reply.

    I've already did that but I got this error;

    "This provider does not support manually changing the password"
    

    Here's my code...

    Partial View _RegisterForm.cshtml

    @using (Html.BeginForm("Register", "Auth", FormMethod.Post, new { @class = "form-horizontal register-form" })) {
       @Html.AntiForgeryToken()
       .....
    }
    

    Controller

    [HttpPost]
    [ValidateAntiForgeryToken]
    public ActionResult Register(RegisterViewModel model)
      {
          ...
      }
    

    Model

    public class RegisterViewModel
    {
        ...
    }
    

    Jin

  • Sven Vervloet 10 posts 81 karma points
    May 04, 2018 @ 06:58
    Sven Vervloet
    0

    Have you tried debugging? Does the Model get filled with data? Then the error is probably somewhere inside your controller.

    You can use developer tools from your browser to see if your data is send correctly.

  • Jin Botol 134 posts 287 karma points
    May 04, 2018 @ 08:07
    Jin Botol
    0

    Yes, because I use my own register function and it's working properly but since I installed the UmbracoIdentity package it's not working anymore and getting that error, yet the form is submitted and the register data is stored in members section in Umbraco BackOffice.

    Jin

  • Jin Botol 134 posts 287 karma points
    May 05, 2018 @ 04:56
    Jin Botol
    0

    Any help for this :( ??

  • Sven Vervloet 10 posts 81 karma points
    May 07, 2018 @ 09:15
    Sven Vervloet
    0

    No. Sorry. I haven't worked with UmbracoIdentity. My experience is with the native Umbraco Membership.

  • Jin Botol 134 posts 287 karma points
    May 08, 2018 @ 01:56
    Jin Botol
    0

    Ohh, Okay. Thanks for your help mate :)

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft