diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-05-29 08:33:48 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-05-29 08:33:48 +0000 |
commit | 67be60ae0997648e7ac4b2d5ab61996efedd630b (patch) | |
tree | 01d0704609d91719889c0151cd12867a081b33e5 /admin | |
parent | a94a213d72cc2982cba2952d721236cc62a6d9d4 (diff) | |
download | ampache-67be60ae0997648e7ac4b2d5ab61996efedd630b.tar.gz ampache-67be60ae0997648e7ac4b2d5ab61996efedd630b.tar.bz2 ampache-67be60ae0997648e7ac4b2d5ab61996efedd630b.zip |
Cleanup and rationalisation of authentication related code. Among other things,
fixes FS#99.
Diffstat (limited to 'admin')
-rw-r--r-- | admin/users.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/users.php b/admin/users.php index 5ed49043..e9e52564 100644 --- a/admin/users.php +++ b/admin/users.php @@ -45,8 +45,8 @@ switch ($_REQUEST['action']) { $fullname = scrub_in($_POST['fullname']); $email = scrub_in($_POST['email']); $access = scrub_in($_POST['access']); - $pass1 = scrub_in($_POST['password_1']); - $pass2 = scrub_in($_POST['password_2']); + $pass1 = $_POST['password_1']; + $pass2 = $_POST['password_2']; /* Setup the temp user */ $client = new User($user_id); @@ -95,8 +95,8 @@ switch ($_REQUEST['action']) { $fullname = scrub_in($_POST['fullname']); $email = scrub_in($_POST['email']); $access = scrub_in($_POST['access']); - $pass1 = scrub_in($_POST['password_1']); - $pass2 = scrub_in($_POST['password_2']); + $pass1 = $_POST['password_1']; + $pass2 = $_POST['password_2']; if ($pass1 !== $pass2 || !strlen($pass1)) { Error::add('password',_("Error Passwords don't match")); |