1. Applying a subscriber "zmstest" in the ZMI
Letting the subscriber password be changed independently at website / in the IntranetAuthor: Dr. Frank Hoffmann (für UDK-Berlin), 2005/11/18 The Subsriber role (ZMSSubscriber) does not get into the ZMS editing interface and therefore primarily does not have the possibility to change the own password. This can be mediated through a DTML method, authorized for this via a Zope proxyrole as "Manager". Download
3. Subscriber changes his password per popup window that appears after click on his name (here stored in the template pageelement_Copyright).
4. The DTML method, which generates the interface for the password popup as well as it takes over the re-writing of the new user parameter, requires the Zope proxyrole "Manager". That way the subscriber may indirectly access these change options.
Information about the DTML code
.....
<dtml-if "REQUEST.get('btn')==getLangStr('BTN_CHANGE',manage_lang)">
<dtml-call "setUserAttr(userObj,'email',email)">
<dtml-call "setUserAttr(userObj,'password',password)">
<dtml-call expr="REQUEST.set('name',AUTHENTICATED_USER.getUserName())">
<dtml-call expr="REQUEST.set('password',password)">
<dtml-call expr="REQUEST.set('confirm',confirm)">
<dtml-call expr="acl_users.manage_users('Change',REQUEST)">
<script language="JavaScript">
<!--
window.close();
alert('Ihre Daten wurden modifiziert;\nSie werden nun
zum erneuten Login aufgefordert.');
self.opener.location.reload();
-->
</script>
</dtml-if>
.....
Integration in the ZMS templates
In the template pageelement_Copyright one can insert e.g. the following line which causes the popup per Javascript; the popup function open_function() is a standard function delivered with the ZMS-typical 'headScript' template: <dtml-var "getLangStr('YOU_ARE',manage_lang)"> angemeldet als:
<a href="javascript:open_function('manage_login?lang=<dtml-var
lang>&manage_lang=<dtml-var manage_lang>',440,220,',resizable=yes,scrollbars=yes')"
class="zmiBottom"><b><dtml-var "string_maxlen(_.str(AUTHENTICATED_USER),15)"></b></a>
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net