mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
isset($value['npub'])
This commit is contained in:
@@ -31,7 +31,7 @@ class Login extends Component
|
|||||||
|
|
||||||
public function updatedUserProfile($value)
|
public function updatedUserProfile($value)
|
||||||
{
|
{
|
||||||
if ($value['npub']) {
|
if (isset($value['npub'])) {
|
||||||
$firstUser = User::query()->where('nostr', $value['npub'])->first();
|
$firstUser = User::query()->where('nostr', $value['npub'])->first();
|
||||||
if ($firstUser) {
|
if ($firstUser) {
|
||||||
auth()->login($firstUser, true);
|
auth()->login($firstUser, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user