mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-25 09:46:47 +00:00
wip hint if the user is authenticated or not in attributes
This commit is contained in:
@@ -121,7 +121,11 @@ def generate_token(
|
|||||||
.with_identity(identity)
|
.with_identity(identity)
|
||||||
.with_name(username or default_username)
|
.with_name(username or default_username)
|
||||||
.with_attributes(
|
.with_attributes(
|
||||||
{"color": color, "room_admin": "true" if is_admin_or_owner else "false"}
|
{
|
||||||
|
"color": color,
|
||||||
|
"room_admin": "true" if is_admin_or_owner else "false",
|
||||||
|
"is_authenticated": not user.is_anonymous,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user