[Zope-dev] getPassword() from PythonScript
Tino Wildenhain
tino at wildenhain.de
Mon Dec 27 08:31:00 EST 2004
Am Montag, den 27.12.2004, 14:30 +0100 schrieb Krzysztof Kubacki:
>
> Hi,
>
> Zope 2-7-0
> Linux
>
> Is possible to get user's password by getPassword() method using
> Python Script?
> Any proxes don't work.
>
> the code below:
> user = context.getMemberById(context,'koperski')
> return user.getPassword()
>
> returns:
> The object is marked as private. Access to 'getPassword' of
> (MemberData at
> 0x2353aea0) denied.
Well, you dont want anybody read your password. In fact
modern userfolder implementations only save crypted (hashed)
password so the function would be of no use anyway.
If you want to help users who forgot passwords, offer a
function to generate a new password.
Regards
Tino
More information about the Zope-Dev
mailing list