diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-08-08 13:51:02 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-08-08 13:51:02 +0800 |
commit | 57f6ec672ab059c57689a45c7f657923718e62bf (patch) | |
tree | 053646688e39e717d3171d6844bdaea66dccd7a1 /templates | |
parent | 6f6fda1481fc299bbdf3c1106ee6474f8b614fa2 (diff) | |
download | gitea-57f6ec672ab059c57689a45c7f657923718e62bf.tar.gz gitea-57f6ec672ab059c57689a45c7f657923718e62bf.zip |
bug fixed
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index aab1aaf193..5975832f32 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -17,7 +17,7 @@ <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> + <option value="0-0">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> |