PWD_MAX_AGE = 365 * 24 * 60 * 60
-PWD_EXP_WARN_DAYS = [1, 3, 7]
+PWD_EXPIRING_DAYS = [1, 3, 7]
PWD_EXPIRED_DAYS = [-1, -3, -7]
PWD_WARNING_SUBJECT = 'Your password expires in {} days'
PWD_WARNING_MESSAGE = '''Dear {},
Your password will expire in {} days.
-Please visit https://passwordchange.useribm.hu and change it.
+Please visit https://www.useribm.hu/passwordchange and change it.
Respectfully yours,
Directory Server'''
PWD_ERROR_MESSAGE = '''Dear {},
Your password has expired.
-Please visit https://passwordchange.useribm.hu and change it.
+Please visit https://www.useribm.hu/passwordchange and change it.
Respectfully yours,
Directory Server'''
rounded_expiration_days = int(expiration_days + 0.5)
if rounded_expiration_days in PWD_EXPIRED_DAYS:
send_mail('ERROR', rounded_expiration_days, uid, email_address)
- elif rounded_expiration_days in PWD_EXP_WARN_DAYS:
+ elif rounded_expiration_days in PWD_EXPIRING_DAYS:
send_mail('WARNING', rounded_expiration_days, uid, email_address)