riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Prevent sensitive information being sent on from Openmaize modules #87

Closed riverrun closed 7 years ago

riverrun commented 7 years ago

At the moment, some of the Openmaize modules send a lot of user information down the line to the controller functions. Care is taken not to reveal any sensitive information to the user or in the logs. However, I feel that more care should be taken to prevent sensitive details being returned by any of the Openmaize modules.

Proposal

Either remove or filter the entries for password_hash, otp_secret, confirmation_token and reset_token from the user model before returning it.