This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/forge | |
PROJECT_NAME="site-name" | |
PROJECT_REPO="git@github.com:github-username/repo-name.git" | |
RELEASES_KEPT=3 | |
RELEASE=$(date +"%Y-%m-%d-%H-%M-%S") | |
# Reload PHP-FPM. | |
( flock -w 10 9 || exit 1 | |
echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Livewire; | |
use App\Http\Requests\TwoFactorLoginRequest; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Facades\Lang; | |
use Livewire\Component; | |
use Rawilk\Webauthn\Actions\PrepareAssertionData; | |
use Rawilk\Webauthn\Facades\Webauthn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Lang; | |
use Livewire\Component; | |
use Rawilk\Webauthn\Actions\PrepareKeyCreationData; | |
class RegisterWebauthnKey extends Component | |
{ | |
/** | |
* This will be the public key credential options required for the front-end. |