Просмотр исходного кода

Change Blog Title to Display Name in OAuth signup

Ref T712
pull/244/head
Matt Baer 4 лет назад
Родитель
Сommit
130c9eb747
2 измененных файлов: 3 добавлений и 3 удалений
  1. +1
    -1
      oauth_signup.go
  2. +2
    -2
      pages/signup-oauth.tmpl

+ 1
- 1
oauth_signup.go Просмотреть файл

@@ -133,7 +133,7 @@ func (h oauthHandler) validateOauthSignup(r *http.Request) error {
}
collTitle := r.FormValue(oauthParamAlias)
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")
if len(password) == 0 {


+ 2
- 2
pages/signup-oauth.tmpl Просмотреть файл

@@ -77,9 +77,9 @@ form dd {

<dl class="billing">
<label>
<dt>Blog Title</dt>
<dt>Display Name</dt>
<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>
</label>
<label>


Загрузка…
Отмена
Сохранить