Wanted to get a better understanding of logging into Meteor.
(a) Currently, users can log into my application via the
app.mySite.com/login route. This works fine. What I would like to do however, is have the user log in from
www.mySite.com is a static web page with a simple login form. I’d like to use an ajax call to a postHandler endpoint in the app, and have the user get automatically logged in.
Is this (i) possible, (ii) a good idea?
Given both the
www.mySite.com are on the same domain, and nginx is forcing https, i figure the post request can send the username/pwd combination cleanly and this is protected by the https.