Here is the code for dmUser, it will add/update the dmUser with
content from my dmUserProfile content fields. The dmUserToGroup is
very similar, but this will vary depending on how you intend to allow
your admin to select groups.
<cfset oAuthentication = request.dmSec.oAuthentication>
<cfset oAuthorisation = request.dmSec.oAuthorisation>
<!--- create/update dmUser --->
<cfif arguments.stProperties.dmUserID eq "">
<cfif arguments.stProperties.userName neq "" and
arguments.stProperties.password neq "">
<cfset arguments.stProperties.userName =
arguments.stProperties.label>
<cfset stResult = oAuthentication.createUser(
userlogin=stProperties.userName,
userDirectory=stProperties.userDirectory,
userStatus=stProperties.userStatus,
userNotes=stProperties.notes,
userPassword=stProperties.password
)>
<cfset stProperties.dmUserID = stResult.userid>
</cfif>
<cfelse>
<cfset stResult = oAuthentication.updateUser(
userid=stProperties.dmUserID,
userlogin=stProperties.userName,
userDirectory=stProperties.userDirectory,
userStatus=stProperties.userStatus,
userNotes=stProperties.notes,
userPassword=stProperties.password
)>
</cfif>
Chris.
On Aug 3, 7:07 pm, Chris Roth <[EMAIL PROTECTED]> wrote:
> Chris,
>
> Thanks, this will get me started...
>
> can you show mw how you deal with "creating" a new user, since it
> doesnt seem to follow the regular objects.
>
> Also how do you update the dmUsertoGroup?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---