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

James jim at futurate.com
Thu May 26 11:15:50 CEST 2005


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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050526/7b9a054a/attachment.htm>


More information about the opencms-dev mailing list