In my rails 3.1 application, I want to create and expire random password for users.I am using devise gem for that.Any plugin available for expiring password withing some duration?
Or else Please give me some logical advice to implement this feature.
Please consider me as a newbie.
In my rails 3.1 application, I want to create and expire random password for
Share
It sounds like you just want to expire the password once. If you’re looking to do it at regular intervals (e.g. every couple of months) or if you want to prevent users from re-using passwords, it gets more complicated.
Taken from an app I’m working on:
app/models/user.rb (assuming that’s what you name your model):
app/controllers/application_controller.rb