Pterodactyl v1.x | User Registration » Регистрация пользователей

💠 Leaks 💠 Addon for Pterodactyl v1.x Pterodactyl v1.x | User Registration » Регистрация пользователей [2.1.0]
Short Description: Пользователи могут создать учетную запись для себя

No permission to download
    Since this resource is in the "Leaks" category, we can't guarantee to update it! But we will try to update the resource to the latest version.
    Reactions:
    • Like
    • Gold love
    • Disliked
    Reactions:75 users
    firefox_AGNlJK0XRa.png
    Аддон проверен на Pterodactyl panel v1.6.3

    Описание:​

    Простой но хороший аддон для панели Pterodactyl, который позволит вашим пользователям регистрироваться в системе.

    Ну а теперь приступим к установке аддона:​

    Примечание: все файлы и пути расположены в каталоге /var/www/pterodactyl/.

    Вставьте эту строку в файл routes/auth.php под Route::post('/password/reset', 'ResetPasswordController')->name('auth.reset-password');

    PHP:
        // Register routes
        Route::get('/register', '[email protected]')->name('auth.register');
        Route::post('/register', '[email protected]')->middleware('recaptcha');
    ----------------------------------------------------------------------------------------
    Вставьте эту строку в файл resources/scripts/routers/AuthenticationRouter.tsx в разделе import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer';

    PHP:
    import RegisterContainer from '@/components/auth/RegisterContainer';
    ----------------------------------------------------------------------------------------
    Вставьте эту строку в файл resources/scripts/routers/AuthenticationRouter.tsx под <Route path={`${match.path}/checkpoint`}/>.

    PHP:
    <Route path={`${match.path}/register`} component={RegisterContainer} exact/>
    ----------------------------------------------------------------------------------------
    Вставьте эту строку в файл resources/scripts/components/auth/LoginContainer.tsx под </Link>.

    PHP:
    <Link
                                    to={'/auth/register'}
                                    css={tw`text-xs text-neutral-500 tracking-wide no-underline uppercase hover:text-neutral-600`}
                                >
                                    <br/>No account?
                                </Link>
    ----------------------------------------------------------------------------------------

    Запустите команду в SSH:​

    cd /var/www/pterodactyl && yarn build:production && chown -R www-data:www-data * && php artisan migrate && php artisan view:clear && php artisan cache:clear

    ----------------------------------------------------------------------------------------

    Ошибка Command 'yarn' not found​

    Если вы получили ошибку типа "Command 'yarn' not found", выполните следующие действия в SSH (это может занять некоторое время):
    Code:
    curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - && sudo apt-get install -y nodejs && npm install yarn && yarn install

    Затем запустите команду:
    Code:
    cd /var/www/pterodactyl && yarn build:production && chown -R www-data:www-data * && php artisan migrate && php artisan view:clear && php artisan cache:clear
    Author
    bobobo
    First release
    Last update
    Rating
    5.00 star(s) 1 ratings

    More resources from bobobo

    Latest updates

    1. 2.1.0

      2.1.0
    2. 2.0.1

      Обновление аддона для поддержки Pterodactyl v1.8.1
    Top