security - Custom fields with Membership provider -


i trying use custom membership provider custom user class dbcontext experiencing problems when trying create new user using "register" form. have fields such points etc in user class need initialised upon creation of user.

when call:

websecurity.createuserandaccount(model.username, model.password); 

there no way me add these details in. how can use can autopopulate these values 0 instance.

have checked out overload allows specify custom properties:

websecurity.createuserandaccount(     username: model.username,      password: model.password,     propertyvalues: new     {         foo = "bar",         baz = "bazinga",     } ) 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -