getalby clickable

This commit is contained in:
Benjamin Takats
2023-01-18 14:07:46 +01:00
parent 836ee9da0a
commit 0590c5e169
5 changed files with 34 additions and 10 deletions

View File

@@ -2,7 +2,6 @@
namespace App\Http\Livewire\Auth;
use App\Gamify\Points\LoggedIn;
use App\Models\LoginKey;
use App\Models\User;
use App\Notifications\ModelCreatedNotification;
@@ -32,8 +31,11 @@ class LNUrlAuth extends Component
$this->k1 = bin2hex(str()->random(32));
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
$this->lnurl = lnurl\encodeUrl($this->url);
$this->qrCode = QrCode::size(300)
->generate($this->lnurl);
$this->qrCode = base64_encode(QrCode::format('png')
->size(300)
->merge('/public/android-chrome-192x192.png', .3)
->errorCorrection('H')
->generate($this->lnurl));
}
public function checkAuth()