mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lnbits paid articles added
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<i class="fa fa-thin fa-plus"></i>
|
||||
{{ __('Submit news articles') }}
|
||||
</x-button>
|
||||
@if(auth()->user()->lnbits)
|
||||
@if(auth()->user()->lnbits['wallet_id'])
|
||||
<x-button
|
||||
class="whitespace-nowrap"
|
||||
:href="route('news.form', ['type' => 'paid'])"
|
||||
|
||||
@@ -117,7 +117,11 @@ Route::get('/lnurl-auth-callback', function (Request $request) {
|
||||
'is_lecturer' => true,
|
||||
'name' => $fakeName,
|
||||
'email' => str($request->key)->substr(-12).'@portal.einundzwanzig.space',
|
||||
'lnbits' => [],
|
||||
'lnbits' => [
|
||||
'api_key' => null,
|
||||
'url' => null,
|
||||
'wallet_id' => null,
|
||||
],
|
||||
]);
|
||||
$user->ownedTeams()
|
||||
->save(Team::forceCreate([
|
||||
|
||||
Reference in New Issue
Block a user