From: moodler Date: Mon, 22 Sep 2003 14:01:45 +0000 (+0000) Subject: Use the new is_internal_auth function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ecac660cd6d3ef4f218e51ad4a75089f08c9109b;p=moodle.git Use the new is_internal_auth function --- diff --git a/user/edit.html b/user/edit.html index 17cc511e1a..44c65750a3 100644 --- a/user/edit.html +++ b/user/edit.html @@ -16,7 +16,7 @@ if (isadmin()) { $adminself = (($theadmin->id == $USER->id) and ($USER->id == $user->id)); echo ""; echo "

".get_string("username").":"; - if ($adminself || $CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){ + if ($adminself || is_internal_auth() ){ echo "username); echo "\">"; @@ -31,7 +31,7 @@ if (isadmin()) { echo ""; echo ""; - if ($adminself || $CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){ + if ($adminself || is_internal_auth() ){ echo ""; echo "

".get_string("newpassword").":"; echo "newpassword) and empty($user->password)) + if (empty($usernew->newpassword) and empty($user->password) and is_internal_auth() ) $err["newpassword"] = get_string("missingpassword"); if (($usernew->newpassword == "admin") or ($user->password == md5("admin") and empty($usernew->newpassword)) ) { diff --git a/user/view.php b/user/view.php index 0c58660759..23a201136e 100644 --- a/user/view.php +++ b/user/view.php @@ -131,7 +131,7 @@ echo ""; $internalpassword = false; - if ($CFG->auth == "email" or $CFG->auth == "none" or $CFG->auth == "manual") { + if (is_internal_auth()) { $internalpassword = "$CFG->wwwroot/login/change_password.php"; }