public function add($id, $username) { $this->imapLoginModel->delete($id); $this->imapLoginModel->dumbInsert(array("user_id" => $id, "username" => $username)); }
public function add($id, $password) { $this->localLoginModel->delete($id); $this->localLoginModel->dumbInsert(array("user_id" => $id, "password" => Passwords::hash($password))); }