<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR>
<STYLE>@font-face {
font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
mso-style-type: export-only
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=136011406-05052010><FONT face=Arial size=2>Hi
Kareem,</FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=136011406-05052010></SPAN><SPAN class=136011406-05052010><FONT
face=Arial size=2>Because passwords are stored hashed, there's no way to get the
plain-text password, and therefore you're only left with "reset password" as
opposed to "retrieve password."</FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial size=2>I'm no OpenCms
expert, but I'm guessing you'll need to use setPassword() [1]. Perhaps one of
the gurus can share/point to a module that already implements
that?</FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial size=2>Hope that
helps,</FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial
size=2>Ahmed</FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=136011406-05052010><FONT face=Arial size=2>[1] <A
href="http://www.opencms.org/javadoc/core/org/opencms/file/CmsUser.html#setPassword%28java.lang.String%29"><FONT
color=#000000>http://www.opencms.org/javadoc/core/org/opencms/file/CmsUser.html#setPassword%28java.lang.String%29</FONT></A></FONT></SPAN></DIV>
<DIV><SPAN class=136011406-05052010></SPAN><SPAN class=136011406-05052010><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><FONT face=Arial
size=2></FONT><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Kareem
Abdulfattah Al Jabr<BR><B>Sent:</B> Wednesday, May 05, 2010 9:03
AM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev]
forgot password - reset passsword<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal>Hi all,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Could someone explain to me how to implement forgot my
password feature or reset my password. I can use readuser method on the
CmsObject and get the CmsUser but when I call getPassword() it returns to me
the decrypted password, which I can do nothing with it.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Thanks,<o:p></o:p></P>
<P class=MsoNormal>Kareem <o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>