Change Blog Title to Display Name in OAuth signup

Ref T712
pull/244/head
Matt Baer 5 years ago
parent 6842ab2e3b
commit 130c9eb747
  1. 2
      oauth_signup.go
  2. 4
      pages/signup-oauth.tmpl

@ -133,7 +133,7 @@ func (h oauthHandler) validateOauthSignup(r *http.Request) error {
} }
collTitle := r.FormValue(oauthParamAlias) collTitle := r.FormValue(oauthParamAlias)
if len(collTitle) == 0 { if len(collTitle) == 0 {
return impart.HTTPError{Status: http.StatusBadRequest, Message: "Alias is too short."} return impart.HTTPError{Status: http.StatusBadRequest, Message: "Display name is too short."}
} }
password := r.FormValue("password") password := r.FormValue("password")
if len(password) == 0 { if len(password) == 0 {

@ -77,9 +77,9 @@ form dd {
<dl class="billing"> <dl class="billing">
<label> <label>
<dt>Blog Title</dt> <dt>Display Name</dt>
<dd> <dd>
<input type="text" style="width: 100%; box-sizing: border-box;" name="alias" placeholder="Alias"{{ if .Alias }} value="{{.Alias}}"{{ end }} /> <input type="text" style="width: 100%; box-sizing: border-box;" name="alias" placeholder="Name"{{ if .Alias }} value="{{.Alias}}"{{ end }} />
</dd> </dd>
</label> </label>
<label> <label>

Loading…
Cancel
Save