==== Wikka Mod 017 ====
Type: Feature Addition
----
===Credit:===
-**[[http://comawiki.martignier.net CoMaWiki]]**
-**[[JsnX Jason Tourtelotte]]** (english translation and some minor modifications)
----
- Modified actions\usersettings.php
- Added, "admin_email" to wakkaDefaultConfig in wakka.php
- Added actions\emailpassword.php:
%%(php)
LoadUser($_POST["wikiname"])) && ($this->IsWikiName($_POST["wikiname"])))
{
$email = $this->Format($user['email']);
$md5pass = $this->Format($user['password']);
$reference = "Change of password for ".$this->config['base_url'];
$header = "From: ".$this->config['wakka_name']." <".$this->config['admin_email'].">";
$message = "Hi, ".$user['name'].".\n\nYou or someone else requested that we send a temporary password to login to ".$this->config['wakka_name'].".\n\n";
$message .= "If you did not request this, disregard this email. -- No action is necessary. -- Your password will stay the same.\n\n";
$message .= "Your wikiname: ".$user['name']." \n";
$message .= "Temporary password: ".$md5pass."\n";
$message .= $this->config['base_url']."\n\n";
$message .= "Do not forget to change the password immediately after logging in.\n";
mail($email,$reference,$message,$header);
echo "
A temporary password was sent to the registered email address of ".$user['name'].".
";
}
else
{
echo "You entered a non-existent user,
";
echo "or you did not write the user name as a proper WikiName with capital letters.
";
echo "Try again:
";
$form = "