Created
March 14, 2009 00:03
-
-
Save henrikbjorn/78840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function register() | |
{ | |
$this->View->errors = array(); | |
$this->View->user = new User_Model; | |
if (request::method() == 'post') { | |
$this->View->user->load_values($this->input->post()); | |
$this->View->user->password = $this->input->post('password'); | |
if ($this->View->user->validate($this->input->post())) { | |
$this->View->user->save(); | |
url::redirect('auth/activate'); | |
} | |
$this->View->errors = $errors; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment