CreateUser method

Posted by Community Admin on 03-Aug-2018 13:16

CreateUser method

All Replies

Posted by Community Admin on 23-Jan-2011 00:00


I am using the CreateUser method as below;

UserManager manager = UserManager.GetManager("Default");
        public void test()
            manager.Provider.SuppressSecurityChecks = true;
            string username = "abc";
            string password = "1234567";
            string email = "";
            string passwordQuestion = null;
            string passwordAnswer = null;
            bool isApproved = false;
            object providerUserKey = null;
            MembershipCreateStatus status = default(MembershipCreateStatus);
            User newuser;
            newuser = manager.CreateUser(username, password, email, passwordQuestion, passwordAnswer, isApproved, providerUserKey, status);

Problem is I'm getting the below error on the CreateUer method above;

The best overloaded method match for 'Telerik.Sitefinity.Security.UserManager.CreateUser(string, string, string, string, string, bool, object, out System.Web.Security.MembershipCreateStatus)' has some invalid arguments

What am I missing?

Many Thanks


Posted by Community Admin on 23-Jan-2011 00:00

Sorry, I just checked, last parameter is an out para. Fixed now. This is what late night working does to you.


This thread is closed