public function createUser($email, $password, $is_admin = 0) { //Generate users salt $user_salt = $this->randomString(); //Salt and Hash the password $password = $user_salt . $password; $password = $this->hashData($password); //Create verification code $verification_code = $this->randomString(); // PUNELE IN DB $message = parent::addUserToDb($email, $password, $user_salt, $verification_code); return $message; }