Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

Custom Registration Module Options
Ryan
Posted: Tuesday, September 2, 2008 6:28:55 AM

Rank: Member
Groups: Member

Joined: 8/26/2008
Posts: 15
Points: 45
Location: U.K.
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:
Code:

            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
Posted: Tuesday, September 2, 2008 7:05:04 AM

Rank: Member
Groups: Member

Joined: 8/26/2008
Posts: 15
Points: 45
Location: U.K.
Right, nevermind, I was being an idiot.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.