Closed eighnjel closed 9 years ago
Thanks!
Since the idea is that this data is coming from a server’s JSON response (or inline supplied JSON file), I think it’s reasonable for Facewall to assume that the email addressed are trimmed. However, I definitely agree it makes to lowercase them since the property name is email
and not emailLowerCased
or the like.
As per: http://en.gravatar.com/site/implement/hash/ email addresses need to be trimmed at lowercased in order to calculate the proper hash.
It would be nice if this line: https://github.com/HubSpot/facewall/blob/master/app/collections/employees.coffee#L35 could become this: