[opencms-dev] OCms5 - Change webuser password whilst logged-in as that user

James jim at futurate.com
Fri May 27 11:12:00 CEST 2005


 

 

   _____  

From: James [mailto:jim at futurate.com] 
Sent: 26 May 2005 10:16
To: opencms-dev at opencms.org
Subject: OCms5 - Change webuser password whilst logged-in as that user

 

Please has anyone any idea why this code works fine offline but not online
after direct publishing???

 

<%@ page import="com.opencms.flex.jsp.CmsJspActionElement,

com.opencms.file.CmsObject,

com.opencms.file.CmsUser,

java.lang.String" %>

 

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<%

String frompage =
"/opencms/opencms/cida/editdetails/index.html?passwordupated=yes";

 

//MANUALLY SET FOR TESTING PURPOSES

String username = "james";

String pass = "hhhhhhh";

 

    CmsJspActionElement cmsjsp = new CmsJspActionElement( pageContext,
request, response );

    CmsObject cmso = cmsjsp.getCmsObject();

 //SET AS NEW PASSWORD

    cmso.setPassword( username,pass );

 

    response.sendRedirect(frompage);

%>

 

Is it because you cannot remain logged-in whilst changing your password at
the same time?????


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/05/2005
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050527/6b7aefb3/attachment.htm>


More information about the opencms-dev mailing list