'staff_1', 'requestData' => [ 'email' => [ 'validation' => DataValidator::email(), 'error' => ERRORS::INVALID_EMAIL ] ] ]; } public function handler() { $email = Controller::request('email'); $banRow = Ban::getDataStore($email,'email'); if($banRow->isNull()) { Response::respondError(ERRORS::INVALID_EMAIL); } else { $banRow->delete(); Log::createLog('UN_BAN_USER', $email); Response::respondSuccess(); } } }