From: paca70 Date: Fri, 25 Apr 2003 16:42:07 +0000 (+0000) Subject: Dont allow edit username when external authentication is active. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4dd049716474aad65b673732f9c006868190a475;p=moodle.git Dont allow edit username when external authentication is active. --- diff --git a/user/edit.html b/user/edit.html index 73dd68b1fa..35345c7f62 100644 --- a/user/edit.html +++ b/user/edit.html @@ -14,10 +14,15 @@ if (isadmin()) { echo ""; echo "

".get_string("username").":"; - echo "username); - echo "\">"; - if (isset($err["username"])) formerr($err["username"]); + if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){ + echo "username); + echo "\">"; + if (isset($err["username"])) formerr($err["username"]); + }else { + echo ""; + p($user->username); + } echo ""; echo "";