[opencms-dev] problem reading password from OpenCmsUser

martin koeck martin.koeck at gmx.at
Thu Apr 24 18:33:01 CEST 2003


Mario,

>     if(lUser.getPassword().equals(request.getParameter("password"))) {
 >
> getPassword() method i get something like 17d685f65e3871473c7823a72c3ce73f

IIRC the method to _encrypt_ the password is exposed via API, so you 
could try this method (cannot find its name right now, have to scan the 
javadoc) -- I think the class was CmsObject ?

if(lUser.getPassword().equals( 
cmsObject.encryptXXX(request.getParameter("password") ))

there is, of course, no way to decrypt it :-)

rgds
--
martin




More information about the opencms-dev mailing list