public function add($uid, $pass, $noCrypt = null) { if (!$noCrypt) { $pass = $this->crypt_function($pass); } $data = array('uid' => $uid, 'password' => $pass); return $this->dbLoginPassword->insert($data); }
public function add($status = 0, $uid = null) { $data = array('uid' => $uid, 'time' => 'NOW()', 'status' => $status); if ($uid = $this->dbLogin->insert($data, 'time')) { if ($uid) { return $uid; } return $uid; } }