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

Commit 41f07cf1 authored by tobyink's avatar tobyink

Passwords should be stored as MD5 hashes.

parent bcf4fb18
......@@ -73,8 +73,6 @@ if ($_POST['submit'])
{
if ($_POST['password_1'] != $_POST['password_2'])
$errors[] = "Passwords do not match.";
if (strlen($_POST['password_1']) > 32)
$errors[] = "Password is too long. (32 char limit.)";
}
if (!empty($_POST['location_uri']))
......@@ -98,7 +96,7 @@ if ($_POST['submit'])
$user->avatar_uri = $_POST['avatar_uri'];
if (!empty( $_POST['password_1'] ))
$user->password = $_POST['password_1'];
$user->password = md5($_POST['password_1']);
$user->save();
......
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