[opencms-dev] Programmatically reset Password

fhsubscriptions at componio.net fhsubscriptions at componio.net
Wed Nov 8 18:41:22 CET 2017


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.

\Fabian

Am 08.11.17 um 14:48 schrieb Bernhard Zebedin:
>
> Dear all.
>
> Maybe someone can help me why my password reset is not working.
>
> I do something like this in my .jsp file:
>
>
>
> CmsWorkplace cmsWorkplace = new CmsWorkplace(pageContext, request,
> response);
> CmsObject cmsoRegister = cmsWorkplace.getCms();
> ....
> String userName = "/webou/"+checkUserName;
> String passWord = RandomStringUtils.randomAlphabetic(8);
> ....
> CmsUser user = cmsoRegister.readUser(userName);
> cmsoRegister.setPassword(user.getName(), passWord);
> cmsoRegister.writeUser(user);
>
>
> I have no error logs in opencms.log...no exceptions where thrown...
> but the password is not written do database.
>
> Is there any publishing needed?
>
>
> kind regards
>
> Bernhard
>
> Working on OpenCMS 10.5.3
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20171108/524cf26d/attachment.htm>


More information about the opencms-dev mailing list