From 4dd049716474aad65b673732f9c006868190a475 Mon Sep 17 00:00:00 2001 From: paca70 Date: Fri, 25 Apr 2003 16:42:07 +0000 Subject: [PATCH] Dont allow edit username when external authentication is active. --- user/edit.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 ""; -- 2.39.5