Example #1
0
 /**
  * 
  * @throws \Exception
  */
 private function setPassword()
 {
     //$this->setFromPost();
     $sql = src\factory::getSql();
     $ret = $sql->sql_call('password_user', array($this->uid, $this->reseturi, $this->upw, $this->getRndString()), array('success'));
     if ($ret[0]->success == 1) {
         return true;
     } else {
         throw new \Exception('SQL-Error creating password');
     }
 }