Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dont allow edit username when external authentication is active.

  • Loading branch information...
commit 4dd049716474aad65b673732f9c006868190a475 1 parent 826293c
paca70 authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 user/edit.html
View
13 user/edit.html
@@ -14,10 +14,15 @@
if (isadmin()) {
echo "<tr valign=top>";
echo "<td><P>".get_string("username").":</td>";
- echo "<td><input type=text name=username size=20 value=\"";
- p($user->username);
- echo "\">";
- if (isset($err["username"])) formerr($err["username"]);
+ if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+ echo "<td><input type=text name=username size=20 value=\"";
+ p($user->username);
+ echo "\">";
+ if (isset($err["username"])) formerr($err["username"]);
+ }else {
+ echo "<td>";
+ p($user->username);
+ }
echo "</td>";
echo "</tr>";
Please sign in to comment.
Something went wrong with that request. Please try again.