Copied to clipboard

Flag this post as spam?

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


  • MK 429 posts 906 karma points
    Jan 23, 2013 @ 10:51
    MK
    0

    Contour member tools compatible with umbraco 4.11.1?

    Hi there,

    Is Contour member tools compatible with umbraco 4.11.1?

    thanks

    mkariti

  • Fuji Kusaka 2203 posts 4220 karma points
    Jan 23, 2013 @ 11:06
    Fuji Kusaka
    0

    Hi,

    Not sure if member tools is compatible but one thing  we can be sure of is the latest version of contour from the videos we saw is a complete blast and more flexible.

    Havent tried it yet but you should be able to use it for members section as well.

  • Comment author was deleted

    Jan 24, 2013 @ 08:20

    Yup don't see why it shouldn't work with 4.11.1

  • Comment author was deleted

    Jan 24, 2013 @ 09:07

    There is also an example of using code first and creating member login/registration/profile/change password http://www.nibble.be/?p=205

  • MK 429 posts 906 karma points
    Feb 05, 2013 @ 14:55
    MK
    0

    Hi Tim,

    Ok so Im trying to implement the code first for Login form but with no success.

    I modified the following form as I need to use user name and not Email addess for login:

     

     [Form("Member/Login", ShowValidationSummary = true, MessageOnSubmit = "You are now logged in")]

        public class Login : FormBase

        {

            [Field("Login", "",

               Mandatory = true)]

            public string Name { get; set; }

     

            [Field("Login", "",

                Type = typeof(Password),

                Mandatory = true)]

            public string Password { get; set; }

     

     

            public override IEnumerableValidate()

            {

                var e = new List();

     

                if(Member.GetMemberFromLoginName(Name) == null)

                    e.Add(new Exception("No member found with this Name"));

                else if (Member.GetMemberFromLoginNameAndPassword(Name, Password) == null)

                    e.Add(new Exception("Incorrect password"));

     

                return e;

            }

       public override void Submit()

            {

                var m = Member.GetMemberFromLoginNameAndPassword(Name, Password);

                if (m != null)

                    Member.AddMemberToCache(m);

            }

        }

     

    Now It created anothe folder in Contour called Member and with a form child called Login.

    This seems to do nothing and I cant debug it as well. 

    Also, I cannot delete this form or its parent folder.

    Any Idea?

    Thanks

    mkariti

  • Comment author was deleted

    Feb 05, 2013 @ 14:59

    Are you outputting the form with the razor macro?

  • MK 429 posts 906 karma points
    Feb 05, 2013 @ 15:00
    MK
    0

    Nop. control.

  • Comment author was deleted

    Feb 05, 2013 @ 15:06

    yeah it's only supported by the razor one, the usercontrol one is getting obsolete

  • MK 429 posts 906 karma points
    Feb 05, 2013 @ 15:07
    MK
    0

    Ok I tried the razor and its only add to entry with no login.

    Ive also managed to delete it.

     

  • MK 429 posts 906 karma points
    Feb 05, 2013 @ 15:09
    MK
    0

    Also, I would prefer not to add it to entries as It reveal the psw

  • MK 429 posts 906 karma points
    Feb 05, 2013 @ 15:41
    MK
    0

    Not sure what just happened but I changed the class from Class library to Internal class and it works!

    Many thanks

    mkariti

     

Please Sign in or register to post replies

Write your reply to:

Draft