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()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->k1 = bin2hex(str()->random(32));
|
$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')
|
$this->qrCode = base64_encode(QrCode::format('png')
|
||||||
->size(600)
|
->size(600)
|
||||||
->errorCorrection('L')
|
->errorCorrection('L')
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class LNUrlAuth extends Component
|
|||||||
{
|
{
|
||||||
$this->k1 = bin2hex(str()->random(32));
|
$this->k1 = bin2hex(str()->random(32));
|
||||||
if (app()->environment('local')) {
|
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 {
|
} else {
|
||||||
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
|
$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));
|
$this->k1 = bin2hex(str()->random(32));
|
||||||
if (app()->environment('local')) {
|
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 {
|
} else {
|
||||||
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
|
$this->url = url('/api/lnurl-auth-callback?tag=login&k1='.$this->k1.'&action=login');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe
|
|||||||
->addTextField('wallet_id');
|
->addTextField('wallet_id');
|
||||||
|
|
||||||
$encryptedRow
|
$encryptedRow
|
||||||
->addField('public_key')
|
->addOptionalTextField('public_key')
|
||||||
->addField('lightning_address')
|
->addOptionalTextField('lightning_address')
|
||||||
->addField('lnurl')
|
->addOptionalTextField('lnurl')
|
||||||
->addField('node_id')
|
->addOptionalTextField('node_id')
|
||||||
->addField('email')
|
->addOptionalTextField('email')
|
||||||
->addOptionalTextField('paynym')
|
->addOptionalTextField('paynym')
|
||||||
->addJsonField('lnbits', $map)
|
->addJsonField('lnbits', $map)
|
||||||
->addBlindIndex('public_key', new BlindIndex('public_key_index'))
|
->addBlindIndex('public_key', new BlindIndex('public_key_index'))
|
||||||
|
|||||||
Reference in New Issue
Block a user