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 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts84965188.86</string> </value> <value> <string>ts90783596.78</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -75,10 +75,19 @@ function toggleHiddenFormatDialogSelection(){\n ...@@ -75,10 +75,19 @@ function toggleHiddenFormatDialogSelection(){\n
MochiKit.DOM.addLoadEvent(setScreenClass);\n MochiKit.DOM.addLoadEvent(setScreenClass);\n
connect(window, "onresize", setScreenClass);\n connect(window, "onresize", setScreenClass);\n
\n \n
function setScreenClass(){\n // function setScreenClass(){\n
var fmt = document.documentElement.clientWidth;\n // var fmt = document.documentElement.clientWidth;\n
var cls = (fmt<=800)?\'screen_small\':(fmt>800)?\'screen_wide\':\'screen_small\';\n // var cls = (fmt<=800)?\'screen_small\':(fmt>800)?\'screen_wide\':\'screen_small\';\n
document.body.className=cls;\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 };\n
...@@ -90,7 +99,7 @@ function setScreenClass(){\n ...@@ -90,7 +99,7 @@ function setScreenClass(){\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>1787</int> </value> <value> <int>2229</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ERP5Form" module="Products.ERP5Form.Form"/>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -80,6 +77,7 @@ ...@@ -80,6 +77,7 @@
<string>ac_password</string> <string>ac_password</string>
<string>came_from</string> <string>came_from</string>
<string>login</string> <string>login</string>
<string>reset_password</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="EditorField" module="Products.ERP5Form.EditorField"/>
<global name="EditorField" module="Products.ERP5Form.EditorField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -214,7 +211,7 @@ ...@@ -214,7 +211,7 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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 onkeypress="submitFormOnEnter(event,\n
\'main_form\',\n \'main_form\',\n
\'WebSite_login\',\n \'WebSite_login\',\n
......
1703 1704
\ No newline at end of file \ 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