I'm using discard gem for Soft deletion. Once user gets Soft-Deleted, user can still receive forget password emails. Because Devise password controller does not care either its soft-deleted or not ?
I'm using following Devise modules, it seems, i may need to fix for all modules:-
- :confirmable,
- :recoverable,
- :timeoutable,
- :trackable
- :lockable
- :authenticatable
Though I'm able to fix login issue with authenticatable by overriding find_for_authentication
method in user model, but it doesn't seem to be working with other Devise modules.
Any Idea, how i can fix soft-deletion issues with Devise ?
I'm using devise(4.6.2), discard (1.0.0), Rails 5.1.6.2