provide change_password.html

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1817 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-07-06 12:11:03 +00:00
parent bdaffda265
commit 0cbd4fe4ba
4 changed files with 24 additions and 4 deletions

View file

@ -58,7 +58,7 @@ function toggleFormFieldHelp(ob,state) {
<div id="viewspace" metal:define-slot="viewspace"> <div id="viewspace" metal:define-slot="viewspace">
<h1 tal:content="view/label">Edit ...</h1> <h1 i18n:translate="" tal:content="view/label">Edit ...</h1>
<metal:block define-macro="header"> <metal:block define-macro="header">

Binary file not shown.

View file

@ -194,4 +194,25 @@ msgstr "major"
msgid "minor" msgid "minor"
msgstr "minor" msgstr "minor"
msgid "Change Password"
msgstr "Passwort ändern"
msgid "Old password"
msgstr "Altes Passwort"
msgid "Password"
msgstr "Passwort"
msgid "Confirm password"
msgstr "Passwort wiederholen"
msgid "Your old password was not entered correctly."
msgstr "Sie haben Ihr altes Passwort nicht korrekt eingegeben."
msgid "Password and password confirmation do not match."
msgstr "Die Passwort-Wiederholung stimmt nicht mit dem eingegebenen Passwort überein."
msgid "Your password has been changed."
msgstr "Ihr Passwort wurde geändert."

View file

@ -44,8 +44,7 @@ from loops.organize.interfaces import IMemberRegistration, IPasswordChange
from loops.organize.party import getPersonForUser from loops.organize.party import getPersonForUser
from loops.organize.util import getInternalPrincipal from loops.organize.util import getInternalPrincipal
import loops.browser.util import loops.browser.util
from loops.util import _
_ = MessageFactory('zope')
class MyStuff(ConceptView): class MyStuff(ConceptView):
@ -181,7 +180,7 @@ class PasswordChange(NodeView, Form):
result = regMan.changePassword(principal, oldPw, pw) result = regMan.changePassword(principal, oldPw, pw)
if not result: if not result:
raise ValueError(u'Your old password was not entered correctly.') raise ValueError(u'Your old password was not entered correctly.')
message = _(u'Your password has been changed') message = _(u'Your password has been changed.')
self.request.response.redirect('%s?message=%s' self.request.response.redirect('%s?message=%s'
% (self.url, message)) % (self.url, message))
#self.request.response.redirect('%s/logout.html?message=%s' #self.request.response.redirect('%s/logout.html?message=%s'