Pārlūkot izejas kodu

LDAP: Disable password rescue link

Bastien Sevajol 8 gadus atpakaļ
vecāks
revīzija
f63fa7d90e
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      tracim/tracim/lib/base.py
  2. 1 1
      tracim/tracim/templates/index.mak

+ 1 - 1
tracim/tracim/lib/base.py Parādīt failu

@@ -32,7 +32,7 @@ class BaseController(TGController):
32 32
         return TGController.__call__(self, environ, context)
33 33
 
34 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 36
         tmpl_context.auth_instance = tg.config.get('auth_instance')
37 37
 
38 38
     @property

+ 1 - 1
tracim/tracim/templates/index.mak Parādīt failu

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