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'])) {
|
||||
$firstUser = User::query()->where('nostr', $value['npub'])->first();
|
||||
if ($value) {
|
||||
$firstUser = User::query()->where('nostr', $value)->first();
|
||||
if ($firstUser) {
|
||||
auth()->login($firstUser, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user