Copied to clipboard

Flag this post as spam?

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


  • Sha Le 20 posts 40 karma points
    Feb 04, 2012 @ 15:40
    Sha Le
    0

    User.MakeNew vs INSERT INTO UmbracoUser

    I prefer INSERT INTO UmbracoUser for few reasons...is it OK do that way? Thanks in advance.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 04, 2012 @ 16:05
    Jeroen Breuer
    0

    Well why don't you have a look if that's all what you need to do in the source: http://umbraco.codeplex.com/SourceControl/changeset/view/751c9aa11bbd#umbraco%2fbusinesslogic%2fUser.cs. It's always safer to create things using the Umbraco API. In v4 a lot of 'magic' happens ;).

    Jeroen

  • Lennart Stoop 304 posts 842 karma points
    Feb 04, 2012 @ 16:51
    Lennart Stoop
    0

    Agree. And if some day you wish to install a package which hooks into the user creation process, it probably won't work.

    Must be a really good reason not to use the API imo.

  • Sha Le 20 posts 40 karma points
    Feb 04, 2012 @ 16:53
    Sha Le
    0

    Thanks Jeroen -- I looked at there before. Since am extending UmbracoUser with more properities in another table -- I want to maintain transaction while new user gets created. 

    I want to make sure that it is OK to go directly to table insert. Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft