<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Did you log the user to make sure it is
the correct one? Something tells me that it is an access right
thing in this case.<br>
<br>
\Fabian<br>
<br>
Am 08.11.17 um 14:48 schrieb Bernhard Zebedin:<br>
</div>
<blockquote type="cite" cite="mid:1510148899153.37961@visions2.net">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
<p>Dear all.<br>
</p>
<p>Maybe someone can help me why my password reset is not working.<br>
</p>
<p>I do something like this in my .jsp file:<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div><span style="font-family: "Lucida Console", Monaco,
monospace;">CmsWorkplace cmsWorkplace = new
CmsWorkplace(pageContext, request, response);</span></div>
<div><span style="font-family: "Lucida Console", Monaco,
monospace;">CmsObject cmsoRegister = cmsWorkplace.getCms();</span></div>
<div><span style="font-family: "Lucida Console", Monaco,
monospace;">....</span><br style="font-family: "Lucida
Console", Monaco, monospace;">
</div>
<div><span style="font-family: "Lucida Console", Monaco,
monospace;">String userName = "/webou/"+checkUserName;</span><br
style="font-family: "Lucida Console", Monaco,
monospace;">
</div>
<div>
<div><span style="font-family: "Lucida Console",
Monaco, monospace;">String passWord =
RandomStringUtils.randomAlphabetic(8);</span></div>
<span style="font-size: 12pt; font-family: "Lucida
Console", Monaco, monospace;"><span style="font-family:
"Lucida Console", Monaco, monospace;">....</span></span></div>
<div>
<div><span style="font-family: "Lucida Console",
Monaco, monospace;">CmsUser user =
cmsoRegister.readUser(userName);</span></div>
<div><span style="font-family: "Lucida Console",
Monaco, monospace;">cmsoRegister.setPassword(user.getName(),
passWord);</span></div>
<div><span style="font-family: "Lucida Console",
Monaco, monospace;">cmsoRegister.writeUser(user);</span><br
style="font-family: "Lucida Console", Monaco,
monospace;">
</div>
<br style="font-family: "Lucida Console", Monaco,
monospace;">
<br style="font-family: "Lucida Console", Monaco,
monospace;">
</div>
<p>I have no error logs in opencms.log...no exceptions where
thrown... but the password is not written do database.<br>
</p>
<p>Is there any publishing needed?<br>
</p>
<p><br>
</p>
<p>kind regards<br>
</p>
<p>Bernhard<br>
</p>
<p>Working on OpenCMS 10.5.3<br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>