Those user fields are stored in dmProfile. (But the password is stored in
dmUser.) The popup is actually modifying the dmProfile fields.
Initially, when farcry objects are created (via createData()), they have no
data associated when them other than default fields and an object id. So
the act of creating a user (db insert) essentially creates a shell of a user
instead. So you would have to catch the act of saving (setData()) in order
to get the email address.
So you could extend dmProfile in your custom types, and just overload the
setData method. Something like
function setData( stObj )
{
var oldObj = getData( stObj.objectID );
//detect an empty email--the condition when a user is first created
if( oldObj.email EQ ""
AND stObj.email NEQ "" )
{
//send mail here
}
super.setData( stObj );
return stObj;
}
Scott Talsma
CTO
echo.eleven
404.845.3458
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jake Churchill
Sent: Monday, April 02, 2007 10:25 AM
To: [email protected]
Subject: [farcry-dev] Re: Send email to new user....
There is no default feature for this because when you add a new user an
email address is not yet set for that user. When that user first logs in,
they are prompted to update their profile including their email address.
You'd need a way to enter an email address when first creating the user and
after the insert is successful, you'd need to send an email address to what
was entered.
Jake Churchill
CF Webtools
11204 Davenport, Ste. 200b
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
Alfie1109 wrote:
> Hi everyone,
>
> Is there a setting in farcry where when I added a new user it will
> send an email to the new user added with their username and password.
> I don't know if there is a setting in farcry where you turn this on
> and off (makes life much easier....LOL!!!) or is this feature
> something I need to add on my own.
>
> Thanks for any advice :)
>
> -a
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---