芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/status.pulsehost.co.uk/app/controllers/SSO.php
sso->websites) ? input_clean($_GET['to']) : null; $redirect = isset($_GET['redirect']) ? input_clean($_GET['redirect']) : 'dashboard'; if(!$to) { redirect(); } $website = settings()->sso->websites->{$to}; $response = \Unirest\Request::post( $website->url . 'admin-api/sso/login', ['Authorization' => 'Bearer ' . $website->api_key], \Unirest\Request\Body::form([ 'email' => $this->user->email, 'name' => $this->user->name, 'redirect' => $redirect, ]) ); /* Check against errors */ if($response->code >= 400) { \Altum\Alerts::add_error($response->body->errors[0]->title); redirect('dashboard'); } /* Redirect */ header('Location: ' . $response->body->data->url); die(); } }