/** * Gets that users email * * @param $user_id * * @return bool|mixed */ public function GetEmail($user_id) { if ($this->user->GetUser($user_id) != null) { return $this->user->GetEmail($user_id); } return null; }
/** * Why are you so salty bro? * * @param $user_id * * @return null */ public function GetSalt($user_id) { if ($this->user->Exists($user_id)) { return $this->manager->GetSalt($user_id); } return null; }
/** * Sets the group of the user * * @param $user_id * * @param $group_id */ public function SetGroup($user_id, $group_id) { if ($this->GroupExists($group_id)) { $this->users->SetUserGroup($user_id, $group_id); } }