mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-01-24 12:03:17 +00:00
- Added `LnurlAuthController` to handle LNURL authentication flow with signature verification, user creation, and session expiry checks. - Integrated authentication error polling in `nostrLogin.js`. - Added `LoginKeyFactory` for testing and database seed purposes. - Created feature tests (`LnurlAuthTest`) to validate LNURL callback, error responses, and session handling. - Extended `login.blade.php` with dynamic error handling and reset logic for expired sessions.
19 lines
359 B
PHP
19 lines
359 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class LoginKeyFactory extends Factory
|
|
{
|
|
protected $model = \App\Models\LoginKey::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'k1' => str()->random(64),
|
|
'user_id' => \App\Models\User::factory(),
|
|
];
|
|
}
|
|
}
|