Browse Source

LDAP: Disable password rescue link

Bastien Sevajol 9 years ago
parent
commit
f63fa7d90e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tracim/tracim/lib/base.py
  2. 1 1
      tracim/tracim/templates/index.mak

+ 1 - 1
tracim/tracim/lib/base.py View File

32
         return TGController.__call__(self, environ, context)
32
         return TGController.__call__(self, environ, context)
33
 
33
 
34
     def _before(self, *args, **kwargs):
34
     def _before(self, *args, **kwargs):
35
-        tmpl_context.auth_is_internal = tg.config.get('auth_is_internal')
35
+        tmpl_context.auth_is_internal = tg.config.get('auth_is_internal', True)
36
         tmpl_context.auth_instance = tg.config.get('auth_instance')
36
         tmpl_context.auth_instance = tg.config.get('auth_instance')
37
 
37
 
38
     @property
38
     @property

+ 1 - 1
tracim/tracim/templates/index.mak View File

50
                                 <button type="submit" class="btn btn-small btn-success text-right">
50
                                 <button type="submit" class="btn btn-small btn-success text-right">
51
                                     <i class="fa fa-check"></i> ${_('Login')}
51
                                     <i class="fa fa-check"></i> ${_('Login')}
52
                                 </button>
52
                                 </button>
53
-                                % if CFG.EMAIL_NOTIFICATION_ACTIVATED:
53
+                                % if CFG.EMAIL_NOTIFICATION_ACTIVATED and tmpl_context.auth_is_internal:
54
                                     <div class="pull-left">
54
                                     <div class="pull-left">
55
                                         <a class="btn btn-link" href="${tg.url('/reset_password')}"><i class="fa fa-magic"></i> ${_('Forgot password?')}</a>
55
                                         <a class="btn btn-link" href="${tg.url('/reset_password')}"><i class="fa fa-magic"></i> ${_('Forgot password?')}</a>
56
                                     </div>
56
                                     </div>