Run gofmt for modified files.
This commit is contained in:
parent
8675eb0f95
commit
731d4e8efe
1 changed files with 6 additions and 6 deletions
12
account.go
12
account.go
|
@ -307,8 +307,8 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error {
|
||||||
OauthWriteAs bool
|
OauthWriteAs bool
|
||||||
OauthGitlab bool
|
OauthGitlab bool
|
||||||
GitlabDisplayName string
|
GitlabDisplayName string
|
||||||
OauthGitea bool
|
OauthGitea bool
|
||||||
GiteaDisplayName string
|
GiteaDisplayName string
|
||||||
}{
|
}{
|
||||||
pageForReq(app, r),
|
pageForReq(app, r),
|
||||||
r.FormValue("to"),
|
r.FormValue("to"),
|
||||||
|
@ -1083,8 +1083,8 @@ func viewSettings(app *App, u *User, w http.ResponseWriter, r *http.Request) err
|
||||||
OauthWriteAs bool
|
OauthWriteAs bool
|
||||||
OauthGitLab bool
|
OauthGitLab bool
|
||||||
GitLabDisplayName string
|
GitLabDisplayName string
|
||||||
OauthGitea bool
|
OauthGitea bool
|
||||||
GiteaDisplayName string
|
GiteaDisplayName string
|
||||||
}{
|
}{
|
||||||
UserPage: NewUserPage(app, r, u, "Account Settings", flashes),
|
UserPage: NewUserPage(app, r, u, "Account Settings", flashes),
|
||||||
Email: fullUser.EmailClear(app.keys),
|
Email: fullUser.EmailClear(app.keys),
|
||||||
|
@ -1097,8 +1097,8 @@ func viewSettings(app *App, u *User, w http.ResponseWriter, r *http.Request) err
|
||||||
OauthWriteAs: enableOauthWriteAs,
|
OauthWriteAs: enableOauthWriteAs,
|
||||||
OauthGitLab: enableOauthGitLab,
|
OauthGitLab: enableOauthGitLab,
|
||||||
GitLabDisplayName: config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName),
|
GitLabDisplayName: config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName),
|
||||||
OauthGitea: enableOauthGitea,
|
OauthGitea: enableOauthGitea,
|
||||||
GiteaDisplayName: config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName),
|
GiteaDisplayName: config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName),
|
||||||
}
|
}
|
||||||
|
|
||||||
showUserPage(w, "settings", obj)
|
showUserPage(w, "settings", obj)
|
||||||
|
|
Loading…
Add table
Reference in a new issue