[gen] Add param Config.activateForgotPassword to allow to disable this functionality for sites where the email of users may be unknown.
This commit is contained in:
parent
b2e1e8c780
commit
47cd8ee277
5 changed files with 11 additions and 3 deletions
|
@ -97,8 +97,8 @@
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<tal:comment replace="nothing">Popup for reinitialing the password</tal:comment>
|
||||
<div id="askPasswordReinitPopup" class="popup" tal:condition="isAnon">
|
||||
<tal:comment replace="nothing">Popup for reinitializing the password</tal:comment>
|
||||
<div id="askPasswordReinitPopup" class="popup" tal:condition="python: isAnon and tool.showForgotPassword()">
|
||||
<form id="askPasswordReinitForm" method="post"
|
||||
tal:attributes="action python: tool.absolute_url() + '/askPasswordReinit'">
|
||||
<div align="center">
|
||||
|
@ -141,7 +141,7 @@
|
|||
tal:define="label python: _('app_connect')" tal:attributes="value label; alt label;"/>
|
||||
</form>
|
||||
</td>
|
||||
<td class="lostPassword">
|
||||
<td class="lostPassword" tal:condition="tool/showForgotPassword">
|
||||
<a href="javascript: openPopup('askPasswordReinitPopup')"
|
||||
tal:content="python: _('forgot_password')"></a></td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue