public function ACT_dovalidation() { $user_name = $this->path_option->getVar('user_name'); $validation_code = $this->path_option->getVar('code'); MDL_User_Edit::validate($user_name, $validation_code); $this->locator->redirect('index'); }
public function ACT_doedit() { if (!$this->acl->check(array('general', 'unvalidated'))) { $this->deny(); } $user = BFL_Register::getVar('personal'); $user_id = $this->acl->getUser()->getID(); $user_name = $user['user_name']; $user_info = array('user_id' => $user_id, 'user_name' => $user_name, 'user_password_correct' => $user['user_password'], 'user_password' => $_POST['user_password'], 'user_password_original' => $_POST['user_password_original'], 'user_password_repeat' => $_POST['user_password_repeat'], 'user_nickname' => $_POST['user_nickname'], 'email' => $_POST['email'], 'website' => $_POST['website'], 'memo' => $_POST['memo'], 'identity' => $user['identity']); MDL_User_Edit::edit($user_info); //TODO success message $this->locator->redirect('user_space'); }