summaryrefslogtreecommitdiffstats
path: root/templates/admin/users/edit.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:40:25 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:40:25 +0800
commit1652dd5068f2f3ae1851bc2321832c88af85d570 (patch)
treed8bee76f5c1016c7ee432334fe02390387b9a8e9 /templates/admin/users/edit.tmpl
parent79ea34e70ebe989f1a5f8fbd71cfe3109c6f8a58 (diff)
downloadgitea-1652dd5068f2f3ae1851bc2321832c88af85d570.tar.gz
gitea-1652dd5068f2f3ae1851bc2321832c88af85d570.zip
basic authentications
Diffstat (limited to 'templates/admin/users/edit.tmpl')
-rw-r--r--templates/admin/users/edit.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/admin/users/edit.tmpl b/templates/admin/users/edit.tmpl
index da9a67cfae..9c9c36a28c 100644
--- a/templates/admin/users/edit.tmpl
+++ b/templates/admin/users/edit.tmpl
@@ -14,6 +14,18 @@
{{.CsrfTokenHtml}}
{{template "base/alert" .}}
<input type="hidden" value="{{.User.Id}}" name="userId"/>
+ <div class="form-group">
+ <label class="col-md-3 control-label">Auth Source: </label>
+ <div class="col-md-7">
+ <select name="logintype" class="form-control">
+ <option value="0-0"{{if eq 0 .User.LoginSource}} selected{{end}}>Local</option>
+ {{$tp := .User.LoginSource}}
+ {{range $key, $val := .LoginSources}}
+ <option value="{{$val.Type}}-{{$val.Id}}"{{if eq $val.Id $tp}} selected{{end}}>{{$val.Name}}</option>
+ {{end}}
+ </select>
+ </div>
+ </div>
<div class="form-group">
<label class="col-md-3 control-label">Username: </label>
<label class="control-label">{{.User.Name}}</label>