[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:
Gaetan Delannay 2012-07-27 11:01:35 +02:00
parent b2e1e8c780
commit 47cd8ee277
5 changed files with 11 additions and 3 deletions

View file

@ -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