feat(api): return eventify_id in StatusView response
Adds `eventify_id` to the `/api/user/status/` endpoint so that `initProfileTickets` can fetch the EVT-XXXXXXXX badge for users whose localStorage session pre-dates the eventify_id login field.
This commit is contained in:
@@ -122,7 +122,8 @@ class StatusView(View):
|
|||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
"status": "logged_in",
|
"status": "logged_in",
|
||||||
"username": user.username,
|
"username": user.username,
|
||||||
"email": user.email
|
"email": user.email,
|
||||||
|
"eventify_id": user.eventify_id or '',
|
||||||
})
|
})
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user