You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Philip Mark Donaghy (JIRA)" <je...@portals.apache.org> on 2006/01/18 02:54:44 UTC
[jira] Commented: (JS2-453) A menu for the documentation guides
[ http://issues.apache.org/jira/browse/JS2-453?page=comments#action_12363062 ]
Philip Mark Donaghy commented on JS2-453:
-----------------------------------------
Number 1 is actually the latest one according to the dates.
> A menu for the documentation guides
> -----------------------------------
>
> Key: JS2-453
> URL: http://issues.apache.org/jira/browse/JS2-453
> Project: Jetspeed 2
> Type: Improvement
> Components: Site Documentation
> Versions: 2.0-FINAL, 2.1, 2.1-dev
> Reporter: Philip Mark Donaghy
> Assignee: David Sean Taylor
> Attachments: navigation.xml.patch, navigation.xml.patch, navigation.xml.patch
>
> It would be nice to always know where you are when you get referred to a page deep in the docs. Have you ever been lost in struts docs and don't know how to get to the same place from the home page. Maven 1 lets you do this by putting an item tag in an item tag.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
Forgotten Password
Posted by Pham Tuan Minh <ph...@yahoo.com>.
Hi,
Steps and my problem:
- Step 1. I reset my password (use some code lines which I wrote).
- Step 2. I login portal successfully with my new password.
- Step 3. The problem is
Except default-page.psml in webapps\jetspeed\WEB-INF\pages\, I can't view others page in webapps\jetspeed\WEB-INF\pages\
- Step 4. I logout.
- Step 5. I can view any page in webapps\jetspeed\WEB-INF\pages\
I used the following code lines to reset user password:
__________________
String strNewPassword = admin.generatePassword();
String strUrlGuid = makeGuid(strUserName, strNewPassword);
Map map = new HashMap();
map.put("user.name", strUserName);
map.put("password", strNewPassword);
admin.putNewLoginInfo(strUrlGuid, map);
updatePasswordFromGuid(strUrlGuid);
___________________
makeGuid(), updatePasswordFromGuid() are functions in ForgottenPasswordPortlet.java in package org.apache.jetspeed.portlets.registration;
in applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java
public static String makeGuid(String user, String newpw)
{
// This is a quicky version
long num = (long) user.hashCode() + (long) newpw.hashCode();
long d = new Date().getTime();
long val = num * d;
String retval = Long.toHexString(val);
return retval;
}
private boolean updatePasswordFromGuid(String strGuid)
{
Map map = admin.getNewLoginInfo(strGuid);
String strUserName = (String) map.get("user.name");
String strNewPassword = (String) map.get("password");
try
{
userManager.setPassword(strUserName, null, strNewPassword);
userManager.setPasswordUpdateRequired(strUserName, true);
// if we got here stuff is changed... removed the key from the map
admin.removeNewLoginInfo(strGuid);
} catch (SecurityException e)
{
return false;
}
return true;
}
_____________________________
What is the wrong in the above code lines ?
When I login with my new password, why can't I view any page ?
With the same pages, I don't need login but I can view them.
I have read carefully codes from ForgottenPasswordPortlet.java but I haven't resolved the problem yet.
Please, help me. Thank in advanced.
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.