Page 1 of 1

API Add Account and email confirmation

Posted: Sat Dec 05, 2009 7:56 pm
by salmon
What are the steps to ensure that a user must confirm email when their account is registered via the API?

In other words - when I use AccountsAdd with the API I specify an email address. How do I ensure that user must confirm their email before their account is activated? Something to do with the valcode parameter?

Re: API Add Account and email confirmation

Posted: Sat Dec 05, 2009 8:41 pm
by Kent Briggs
salmon wrote:What are the steps to ensure that a user must confirm email when their account is registered via the API?

In other words - when I use AccountsAdd with the API I specify an email address. How do I ensure that user must confirm their email before their account is activated? Something to do with the valcode parameter?
The built-in email validation was only designed for self-created accounts inside the flash client. However, after creating the account via the API, you can call AccountsEdit and write a random 5-digit number to the ValCode field and then send the email yourself.

Re: API Add Account and email confirmation

Posted: Sat Dec 05, 2009 9:12 pm
by salmon
Thanks for the fast reply. Just tried that, I see how it flows - great :)