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