isset($value['npub'])

This commit is contained in:
HolgerHatGarKeineNode
2023-08-22 13:53:01 +02:00
parent e84cdab499
commit 276b83dbc1

View File

@@ -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);