Projet

Général

Profil

0001-views-do-not-set-password-on-unlink-for-LDAP-users-2.patch

Benjamin Dauvergne, 17 mai 2019 11:02

Télécharger (935 octets)

Voir les différences:

Subject: [PATCH] views: do not set password on unlink for LDAP users (#24170)

 src/authentic2_auth_fc/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2_auth_fc/views.py
527 527
    def must_set_password(self):
528 528
        for event in self.request.session.get(constants.AUTHENTICATION_EVENTS_SESSION_KEY, []):
529 529
            if event['how'].startswith('password'):
530
                return False
530
                return self.user.can_change_password()
531 531
        return True
532 532

  
533 533
    def dispatch(self, request, *args, **kwargs):
534
-