Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Dont allow edit username when external authentication is active.

  • Loading branch information...
commit 4dd049716474aad65b673732f9c006868190a475 1 parent 826293c
authored April 25, 2003

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. 13  user/edit.html
13  user/edit.html
@@ -14,10 +14,15 @@
14 14
 if (isadmin()) {
15 15
     echo "<tr valign=top>";
16 16
     echo "<td><P>".get_string("username").":</td>";
17  
-    echo "<td><input type=text name=username size=20 value=\"";
18  
-    p($user->username);
19  
-    echo "\">";
20  
-    if (isset($err["username"])) formerr($err["username"]);
  17
+    if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
  18
+        echo "<td><input type=text name=username size=20 value=\"";
  19
+        p($user->username);
  20
+        echo "\">";
  21
+        if (isset($err["username"])) formerr($err["username"]);
  22
+    }else {
  23
+        echo "<td>";
  24
+        p($user->username);
  25
+    }
21 26
     echo "</td>";
22 27
     echo "</tr>";
23 28
 

0 notes on commit 4dd0497

Please sign in to comment.
Something went wrong with that request. Please try again.