Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to Find out username with ajax request?*
Just like the title says, I need to find out via an ajax request the username of the user (or without ajax, but with javascript).
I first thought that it would've been obvious that some general info (like username) is stored in the javascript gdn object, but apparently none such is
Therefore... any ideas on how to do it?
I first thought that it would've been obvious that some general info (like username) is stored in the javascript gdn object, but apparently none such is
Therefore... any ideas on how to do it?
Tagged:
0
Comments
$this->SetDefinition('Username', $Session->Username);
and
var Username = gdn.definition('Username');