diff options
Diffstat (limited to 'inc/Action/Resendpwd.php')
-rw-r--r-- | inc/Action/Resendpwd.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/Action/Resendpwd.php b/inc/Action/Resendpwd.php index f3f8d3bad..dfa4a99d0 100644 --- a/inc/Action/Resendpwd.php +++ b/inc/Action/Resendpwd.php @@ -73,7 +73,7 @@ class Resendpwd extends AbstractAclAction { if($token) { // we're in token phase - get user info from token - $tfile = $conf['cachedir'] . '/' . $token{0} . '/' . $token . '.pwauth'; + $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth'; if(!file_exists($tfile)) { msg($lang['resendpwdbadauth'], -1); $INPUT->remove('pwauth'); @@ -148,7 +148,7 @@ class Resendpwd extends AbstractAclAction { // generate auth token $token = md5(auth_randombytes(16)); // random secret - $tfile = $conf['cachedir'] . '/' . $token{0} . '/' . $token . '.pwauth'; + $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth'; $url = wl('', array('do' => 'resendpwd', 'pwauth' => $token), true, '&'); io_saveFile($tfile, $user); |