Hide verificationToken - #1851
Conversation
|
I don't really understand how the automated tests work - none of them have actually failed. |
|
@ritch @raymondfeng you are more familiar with user verification process than I am. Do you see any reason why it may be a bad idea to hide "verificationToken" from User JSON? |
|
Rebased and unit test added. |
|
@gausie could you please squash the commits into a single one? Note that I am wondering if we need to go through the whole var user = new User({email: 'bar@bat.com', password: 'bar', verificationToken: 'a-token' });
var data = user.toJSON();
assert(!('verificationToken' in data)); |
We should never be showing this publically. Adds unit test for hiding verification token.
|
@bajtos, have followed both of your recommendations |
|
@slnode test please |
Hide verificationToken from JSON output
|
Landed, thank you @gausie for your contribution! |
We should never be showing this publically. Adds unit test for hiding verification token. This is a back-port of pull request #1851 from gausie/patch-4
We should never be showing this publically.