[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
|
@ -113,6 +113,10 @@ class ToolMixin(BaseMixin):
|
|||
page = self.REQUEST.get('ACTUAL_URL').split('/')[-1]
|
||||
return page not in ('edit', 'query', 'search', 'do')
|
||||
|
||||
def showForgotPassword(self):
|
||||
'''We must show link "forgot password?" when the app requires it.'''
|
||||
return self.getProductConfig().activateForgotPassword
|
||||
|
||||
def getLanguages(self):
|
||||
'''Returns the supported languages. First one is the default.'''
|
||||
return self.getProductConfig().languages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue