Skip to content

Commit

Permalink
Merge pull request #4 from konvergence/konvergence-check-expiration
Browse files Browse the repository at this point in the history
Update checkexpiration.php
  • Loading branch information
konvergence authored Aug 22, 2017
2 parents 0976b2b + 24be293 commit aef4511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/checkexpiration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# functions
#==============================================================================

function generate_url($action) {
function generate_url($reset_url, $action) {

if ( empty($reset_url) ) {

Expand Down Expand Up @@ -271,7 +271,7 @@ function generate_url($action) {

# notify the first day of expire
if( $expire_always_mail || $expireInUnits == 1){
$url= generate_url("sendtoken");
$url= generate_url($reset_url, "sendtoken");
$data = array( "login" => $login, "mail" => $mail, "url" => $url, "days" => $expireInUnits ) ;
# Send message
if ( ! send_mail($mailer, $mail, $mail_from, $mail_from_name, $messages["alertexpiresubject"], $messages["alertexpiremessage"].$mail_signature, $data) ) {
Expand Down

0 comments on commit aef4511

Please sign in to comment.