mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 11:46:47 +00:00
🖼️ Improve lnurl-auth user lookup and add Hungarian meetup URL to README
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
[](https://forge.laravel.com/prime-software/lsm-server-1/1833504)
|
||||
|
||||
### Hosted:
|
||||
### Hosted:
|
||||
|
||||
- de-DE: [https://portal.einundzwanzig.space/de/meetups](https://portal.einundzwanzig.space/de/meetups)
|
||||
- de-AT: [https://portal.einundzwanzig.space/at/meetups](https://portal.einundzwanzig.space/at/meetups)
|
||||
- de-CH: [https://portal.einundzwanzig.space/ch/meetups](https://portal.einundzwanzig.space/ch/meetups)
|
||||
- pl-PL: [https://portal.dwadziesciajeden.pl/pl/meetups](https://portal.dwadziesciajeden.pl/pl/meetups)
|
||||
- hu-HU: [https://portal.huszonegy.world/hu/meetups](https://portal.huszonegy.world/hu/meetups)
|
||||
|
||||
### Host your national domain?
|
||||
|
||||
|
||||
@@ -191,10 +191,12 @@ Route::middleware([])
|
||||
Route::get('/lnurl-auth-callback', function (Request $request) {
|
||||
if (lnurl\auth($request->k1, $request->sig, $request->key)) {
|
||||
// find User by $wallet_public_key
|
||||
if ($user = User::query()
|
||||
->where('change', $request->k1)
|
||||
->where('change_time', '>', now()->subMinutes(5))
|
||||
->first()) {
|
||||
if (
|
||||
$user = User::query()
|
||||
->where('change', $request->k1)
|
||||
->where('change_time', '>', now()->subMinutes(5))
|
||||
->first()
|
||||
) {
|
||||
$user->public_key = $request->key;
|
||||
$user->change = null;
|
||||
$user->change_time = null;
|
||||
|
||||
Reference in New Issue
Block a user