how do it get the current user?
Like, is there a cookie with his session id/Username or something like that i can use to get his info from
/users/username.json ? or if i can directly get it via ajax?
I need to submit a form, ONLY when the user is
Logged in on discourse.
Or can i get user’s password via ajax? , this way i can ask user to enter pass for his forum account and then check it against the password, I get from discourse.