We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 906f4d57 authored by jurgbohn's avatar jurgbohn

Delete recovery-code after using it

parent e11839d2
......@@ -19,6 +19,8 @@
// TODO: Check if the request has expired before changing.
......@@ -56,6 +58,8 @@ if (isset($_GET['code'])) {
. $mdb2->quote($email, 'text');
$sql = "DELETE FROM Recovery_Request WHERE code=" . $mdb2->quote($_GET['code'], 'text');
$content = "Hi!\n\nYour password has been set to " . $password . "\n\n - The Libre.fm Team";
sendEmail($content, $email);
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