Commit 082bf6a8 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '5753-send-emails-to-expired-users-if-the-option-is-active' into '1.4-dev'

Resolve "Send emails to expired users if the option is active"

See merge request argonaut/argonaut!140
parents 5b89a0f1 7793f7f1
......@@ -457,7 +457,7 @@ sub alert_user_if_needed
# Check if we already sent an email.
my ($token_hash, $token_datetime) = get_ldap_token($ldap, $entry->get_value('uid'));
if ($mode eq 'expired') {
if ($token_hash eq '{EXPIRED}') {
if ((defined $token_hash) && ($token_hash eq '{EXPIRED}')) {
$log->info("User $cn was already sent a mail of expiration, not resending.");
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment