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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -