Файловый менеджер - Редактировать - /home/digitalm/tendepavia/wp-content/plugins/redux-framework/extendify-sdk/app/Library/Controllers/AuthController.php
Назад
<?php /** * Controls Auth */ namespace Extendify\Library\Controllers; use Extendify\Http; if (!defined('ABSPATH')) { die('No direct access.'); } /** * The controller for dealing registration and authentication */ class AuthController { /** * Login a user to extendify - it will return the API key * * @param \WP_REST_Request $request - The request. * @return WP_REST_Response|WP_Error */ public static function login($request) { $response = Http::post('/login', $request->get_params()); return new \WP_REST_Response( $response, wp_remote_retrieve_response_code($response) ); } /** * Handle registration - It will return the API key. * * @param \WP_REST_Request $request - The request. * @return WP_REST_Response|WP_Error */ public static function register($request) { $response = Http::post('/register', $request->get_params()); return new \WP_REST_Response( $response, wp_remote_retrieve_response_code($response) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка