0001-views-do-not-set-password-on-unlink-for-LDAP-users-2.patch
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.request.user.can_change_password()
|
|
531 | 531 |
return True |
532 | 532 | |
533 | 533 |
def dispatch(self, request, *args, **kwargs): |
534 |
- |