Commit 19cbec14 authored by Ivan Tyagov's avatar Ivan Tyagov

Make it possible to reset password using ERP5 credentials system.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40794 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bff4ba77
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts84965188.86</string> </value>
<value> <string>ts90783596.78</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -75,10 +75,19 @@ function toggleHiddenFormatDialogSelection(){\n
MochiKit.DOM.addLoadEvent(setScreenClass);\n
connect(window, "onresize", setScreenClass);\n
\n
function setScreenClass(){\n
var fmt = document.documentElement.clientWidth;\n
var cls = (fmt<=800)?\'screen_small\':(fmt>800)?\'screen_wide\':\'screen_small\';\n
document.body.className=cls;\n
// function setScreenClass(){\n
// var fmt = document.documentElement.clientWidth;\n
// var cls = (fmt<=800)?\'screen_small\':(fmt>800)?\'screen_wide\':\'screen_small\';\n
// document.body.className=cls;\n
// };\n
\n
function requestPasswordReset(script_name){\n
MochiKit.DOM.getElement(\'reference\').value = MochiKit.DOM.getElement(\'__ac_name\').value;\n
/* reset __ac_name & __ac_password in case they have been filled by browser */\n
MochiKit.DOM.getElement(\'__ac_name\').value = "";\n
MochiKit.DOM.getElement(\'__ac_password\').value = "";\n
/* Submit request password */\n
submitAction(MochiKit.DOM.getElement(\'main_form\'), script_name); \n
};\n
......@@ -90,7 +99,7 @@ function setScreenClass(){\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1787</int> </value>
<value> <int>2229</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -80,6 +77,7 @@
<string>ac_password</string>
<string>came_from</string>
<string>login</string>
<string>reset_password</string>
</list>
</value>
</item>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="EditorField" module="Products.ERP5Form.EditorField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -214,7 +211,7 @@
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
<input name="__ac_password" id="password" value="" type="password" size="30"\n
<input name="__ac_password"id="__ac_password" value="" type="password" size="30"\n
onkeypress="submitFormOnEnter(event,\n
\'main_form\',\n
\'WebSite_login\',\n
......
1703
\ No newline at end of file
1704
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment