You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked into this, and the toJSON function is not automatically called by sails. What this means is that the user list page http://localhost:1337/user serves all encrypted passwords as does each individual user page.
All instances of User objects served to a view come with their encrypted password attribute intact.
It appears that the toJSON() method must be called explicitly for each view, as well as on the entire collection for the show controller method.
The fix is individually using toJSON on individual views and
I've looked into this, and the toJSON function is not automatically called by sails. What this means is that the user list page http://localhost:1337/user serves all encrypted passwords as does each individual user page.
![screen shot 2015-08-08 at 1 27 48 am](https://cloud.githubusercontent.com/assets/6377293/9149376/bb7eda28-3d6c-11e5-8ebb-e0c9c246a275.png)
All instances of User objects served to a view come with their encrypted password attribute intact.
It appears that the toJSON() method must be called explicitly for each view, as well as on the entire collection for the show controller method.
The fix is individually using toJSON on individual views and
The text was updated successfully, but these errors were encountered: