rydurham / Sentinel

A Sentry bridge package for Laravel
http://www.ryandurham.com/projects/sentinel/
317 stars 68 forks source link

[UPDATE] User activation flow updated. #209

Closed tusharvikky closed 8 years ago

tusharvikky commented 8 years ago

If User requests activation email for an invalid account, send a failure response with User not found message.

FIXES #208

rydurham commented 8 years ago

Hello,

Thank you for submitting this pull request.

The change you made on line 256 of the SentryUserRepository opens up an opportunity for security information leakage - we don't want anyone to be able to infer from the error messages whether or not an account actually exists. Please revert this.

I also think we should adjust the language of the new Sentinel::users.pendingactivation message to be a bit more vague; something like "If an account is found for this email address a new activation email will be delivered", or something like that.

Other than that I think we are good to go!

tusharvikky commented 8 years ago

I guess this is somewhat good to begin with. Please merge or let me know.

rydurham commented 8 years ago

Thanks!