Change Blog Title to Display Name in OAuth signup
Ref T712
This commit is contained in:
parent
6842ab2e3b
commit
130c9eb747
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue