0001-ldap-fix-misleading-variable-timeBeforeExpiration-ex.patch
src/authentic2/backends/ldap_backend.py | ||
---|---|---|
257 | 257 |
return messages |
258 | 258 | |
259 | 259 |
if ctrl.timeBeforeExpiration: |
260 |
timeBeforeExpiration = time.asctime(time.localtime(time.time() + ctrl.timeBeforeExpiration))
|
|
261 |
messages.append(_('The password will expire at {timeBeforeExpiration}.').format(
|
|
262 |
timeBeforeExpiration=timeBeforeExpiration))
|
|
260 |
expiration_date = time.asctime(time.localtime(time.time() + ctrl.timeBeforeExpiration))
|
|
261 |
messages.append(_('The password will expire at {expiration_date}.').format(
|
|
262 |
expiration_date=expiration_date))
|
|
263 | 263 |
if ctrl.graceAuthNsRemaining: |
264 | 264 |
messages.append(ngettext( |
265 | 265 |
'This password expired: this is the last time it can be used.', |
266 |
- |