Skip to content

Commit

Permalink
Added news_forgotpassword().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 12, 2002
1 parent fa41122 commit 040fd36
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions php_interface/IcculusNews.php
Expand Up @@ -488,4 +488,15 @@ function news_changepassword($sock, $pword)
return(NULL); // no error.
} // news_changepassword


function news_forgotpassword($sock, $email)
{
fputs($sock, "FORGOTPASSWORD $email\n");
$in = fgets($sock, 4096);
if ($in{0} != '+')
return(substr($in, 2));

return(NULL); // no error.
} // news_forgotpassword

?>

0 comments on commit 040fd36

Please sign in to comment.