Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]joytopia[/eluser]
Ben,

perhaps it would be a good idea to take the email out of the register (forgot password etc.) method and put it into a separate email method. This could be done in the controller, because sending emails has nothing to do with authentication.

Now, instead of only returning bool, the registration method could return an array with relevant information like id, activation-code etc.

The controller could look like this:

Code:
if($register = $this->ion_auth->register())
{
    //do something with $register like sending a confirmation email
    //or telling the new user his user-number
    //or update the new user-record with some calculated data
}
else
{
    // registration failed
}

So the functionality, look and feel of the emails can be totally controlled by the programmer.

What do you think?

Best regards
Bernd


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-12-2010, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB