CoreWiki icon indicating copy to clipboard operation
CoreWiki copied to clipboard

Implied consent for password reset

Open ashleybroughton opened this issue 6 years ago • 1 comments

Should we remove this check for consent? https://github.com/csharpfritz/CoreWiki/blob/dev/CoreWiki.Notifications/NotificationService.cs#L89-L92

It not only doesn't stop processing after the consent check fails, but if a user requested a password reset, isn't consent implied?

If it's the case of a malicious user requesting password resets, the end user probably wants to know about that.

Perhaps we should implement rate limiting for reset requests.

ashleybroughton avatar Aug 02 '18 08:08 ashleybroughton

The log string is definitely wrong and the func parameter name could be better. The idea was that you would pass in a function that would evaluate whether or not the email could be sent. For generic emails this would check the cannotify/emailvalidated values. For any essential emails (ie password reset) the idea was that this would always return true, but your suggestion about rate limiting would make sense here. Since this class needed to be uncoupled from the CoreWiki project we cannot directly access the database for this.

erwindevreugd avatar Aug 03 '18 17:08 erwindevreugd