Browse Source

user/settings: fix cannot change profile for non-local users (#4313)

pull/4330/head
Unknwon 8 years ago
parent
commit
5f1bbbde49
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      templates/user/settings/profile.tmpl

2
templates/user/settings/profile.tmpl

@ -14,7 +14,7 @@
{{.CsrfTokenHtml}}
<div class="required field {{if .Err_Name}}error{{end}}">
<label for="username">{{.i18n.Tr "username"}}<span class="text red hide" id="name-change-prompt"> {{.i18n.Tr "settings.change_username_prompt"}}</span></label>
<input id="username" name="name" value="{{.SignedUser.Name}}" data-name="{{.SignedUser.Name}}" autofocus required {{if not .SignedUser.IsLocal}}disabled{{end}}>
<input id="username" name="name" value="{{.SignedUser.Name}}" data-name="{{.SignedUser.Name}}" autofocus required {{if not .SignedUser.IsLocal}}readonly{{end}}>
{{if not .SignedUser.IsLocal}}
<p class="help text blue">{{$.i18n.Tr "settings.password_username_disabled"}}</p>
{{end}}

Loading…
Cancel
Save