Im using devise with rails 3.
My requirement in this is,
There are two scenarios.
1. User send reset password for their email id.
2. Admin send reset password for the user mail id, where the user is not
active. When this scenario is generated, the reset instruction mail
should be delivered to the admin email id and not to the actual user
mail id.
This is tricky but this is what my requirement is.
Can this be done in devise?
Or is there any other possibilities?
Can anyone share your thoughts on this?
Regards,
--
Posted via http://www.ruby-forum.com/.
> 2. Admin send reset password for the user mail id, where the user is not
> active. When this scenario is generated, the reset instruction mail
> should be delivered to the admin email id and not to the actual user
> mail id.
...
> Or is there any other possibilities?
>
> Can anyone share your thoughts on this?
Since you asked for our thoughts... mine are that this requirement
doesn't make much sense. The only reason I can think of for doing
this, is that what the customer (the person asking you to write the
app, not the user of the app) really wants, is for the admin to have
some way to set a user's password. The requirement is poorly written,
dictating *how* something will be done, not just *what* is to be done.
If it's absolutely necessary that there be an email, such as for an
audit trail, that can be done by adding that to the admin's password
reset feature.
-Dave
--
Dave Aronson: Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com