Revision 7bb081f5 snf-astakos-app/astakos/im/auth_providers.py

b/snf-astakos-app/astakos/im/auth_providers.py
173 173
            setting_key = "%s_POLICY" % policy.upper()
174 174
            if self.has_setting(setting_key):
175 175
                self.module_policies[policy] = self.get_setting(setting_key)
176
            else:
177
                self.module_policies[policy] = value
176 178

  
177 179
        # messages cache
178 180
        self.message_tpls_compiled = OrderedDict()
......
553 555
    }
554 556

  
555 557
    policies = {
556
        'limit': 1
558
        'limit': 1,
559
        'switch': False
557 560
    }
558 561

  
559 562
    @property
......
582 585
    login_view = 'astakos.im.views.target.shibboleth.login'
583 586
    username_key = 'identifier'
584 587

  
588
    policies = {
589
        'switch': False
590
    }
591

  
585 592
    messages = {
586 593
        'title': _('Academic'),
587 594
        'login_description': _('If you are a student, professor or researcher'

Also available in: Unified diff