Permalink
Browse files

Backing out last patch - needs fixing differently

  • Loading branch information...
1 parent 0bbef39 commit 179736fec9b3b3caff694ab8e401baa6f6c05b05 mjollnir_ committed Dec 4, 2005
Showing with 1 addition and 5 deletions.
  1. +1 −5 login/change_password.php
@@ -137,10 +137,6 @@
*****************************************************************************/
function validate_form($frm, &$err) {
- // we always need to call this because it handles the
- // loading of the auth libraries, and we need that for later.
- $validatepw = authenticate_user_login($frm->username, $frm->password);
-
if (empty($frm->username)){
$err->username = get_string('missingusername');
} else {
@@ -149,7 +145,7 @@ function validate_form($frm, &$err) {
} else {
if (!isadmin()) {
//require non adminusers to give valid password
- if(!$validatepw) {
+ if(!authenticate_user_login($frm->username, $frm->password)) {
$err->password = get_string('wrongpassword');
}
}

0 comments on commit 179736f

Please sign in to comment.