Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Ryan 9/2/2008 3:28 PM
Hi, I am busy writing a custom registration module and am have a bit of trouble on a seemingly silly issue.

Once the validating user has confirmed his email registration request, I then take his details captured so far and create a CuyahogaUser. That works fine, the problem I am having is assigning him a specific role.

So i have:
            User user = new User();
            //setting up the new user goes here
            session.Save(user);
            session.Flush();
            Role role = GetRole((int)UserStatus.IncompleteProfile)); // What do I do with this?

I realise I need to create an entry cuyahoge_userrole table, however there is no Cuyahoga.Core.Domain.CuyahogaUserrole entity.
# Ryan 9/2/2008 4:05 PM
Right, nevermind, I was being an idiot.