ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

password reset super ineficient #176

Closed spinosa closed 11 years ago

spinosa commented 11 years ago

PasswordResetController#update uses reset_password_by_token which is defined by Devise. But this method searches for a user based on User.reset_password_token which we do not index on. Need to be smarter as this ends up crawling the entire DB