Hobo stores its passwords in a one-way hash, so you'd have to crack the
hash to display the password in plain text form.
If you want to neuter this capability, you could redefine the encrypt
function in your user.rb to something like:
def encrypt(password, salt)
password
end
Then you could give your admins access to the crypted_password field on
your user.
Of course, this is totally not recommended, but there are places where
weak password policies are appropriate. Just make sure to tell your
users so that they don't use their bank password to access your site...
cheers,
Bryan
On 10-11-07 10:19 AM, Scorpio wrote:
Hi, I've got a site in the works and I managed to figure out most
stuff I need by now but there is one thing I dunno how to fix. As an
admin I'd like to have the ability to reset user passwords and emails
(if say some sort of error occurs) no questions asked. I'd like to
have a form in the admin/users/Y-XXX that shows me the unencrypted
password of a user and his email with the ability to change them at
will.
I've tried getting the password in front but when I want to reset it
I'm always aked for the current pass and being admin I find it kinda
ridiculous tbh. Any help?
Thanks in advance
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.