Discourse Meta
Widget's user awareness
Ontwikkelaar
zcuric
(Zdravko)
31 maart 2020 om 16:35
2
You can use:
const user = api.getCurrentUser() if(user) { return user.username; }
More info here:
5 likes
bericht weergeven in topic
Gerelateerde topics
Topic
Antwoorden
Weergaven
Activiteit
How to find out if user logged in
Support
6
1163
2 november 2020
Logged In User Data
Dev
4
242
19 april 2024
How to access discourse username from an iframe?
Dev
0
448
13 november 2020
Set current User in Javascript
Dev
6
3065
18 september 2017
Find a user by ID or username?
Dev
3
1697
12 mei 2017