mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
fix lnurl-auth problem
This commit is contained in:
@@ -14,7 +14,7 @@ class Auth47Component extends Component
|
||||
public function mount()
|
||||
{
|
||||
$this->k1 = bin2hex(str()->random(32));
|
||||
$this->url = 'auth47://'.$this->k1.'?c=https://einundzwanzig.eu-1.sharedwithexpose.com/auth/auth47-callback&r=https://einundzwanzig.eu-1.sharedwithexpose.com/auth/auth47-callback';
|
||||
$this->url = 'auth47://'.$this->k1.'?c=https://einundzwanzig.sharedwithexpose.com/auth/auth47-callback&r=https://einundzwanzig.eu-1.sharedwithexpose.com/auth/auth47-callback';
|
||||
$this->qrCode = base64_encode(QrCode::format('png')
|
||||
->size(600)
|
||||
->errorCorrection('L')
|
||||
|
||||
@@ -33,7 +33,7 @@ class LNUrlAuth extends Component
|
||||
{
|
||||
$this->k1 = bin2hex(str()->random(32));
|
||||
if (app()->environment('local')) {
|
||||
$this->url = 'https://einundzwanzig.eu-1.sharedwithexpose.com/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login';
|
||||
$this->url = 'https://einundzwanzig.sharedwithexpose.com/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login';
|
||||
} else {
|
||||
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class LightningWallet extends Component
|
||||
{
|
||||
$this->k1 = bin2hex(str()->random(32));
|
||||
if (app()->environment('local')) {
|
||||
$this->url = 'https://einundzwanzig.eu-1.sharedwithexpose.com/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login';
|
||||
$this->url = 'https://einundzwanzig.sharedwithexpose.com/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login';
|
||||
} else {
|
||||
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user