The code below makes a POST of the data entered by the user in the login.
$http.post('api/v1/login', object).then(function (results) {
return results.data;
});
Notice that I pass as an object an parameter that contains the data entered in the login:
//exemplo de um objecto após preencher os campos senha/login
{"customer":{"email":"[email protected]","password":"123456"}}
The problem is that when debugging in the Firefox console, I can see the email and password entered, see:
This does not raise security issues?
As the application is made with AngularJS, the page refresh does not exist, if you leave the console open, whoever uses the application on that computer will have the data exposed if you just log out and keep the browser open.