diff options
author | zhuharev <hostmaster@zhuharev.ru> | 2016-01-06 22:41:42 +0300 |
---|---|---|
committer | zhuharev <hostmaster@zhuharev.ru> | 2016-01-06 22:41:42 +0300 |
commit | 0d5dc8a064faa978a4571f565b20959dcc49f181 (patch) | |
tree | 6e782852e3b8617e5ff804e101dc4ca730611dc1 | |
parent | 0cb739684096396e26595ac70817a2a05b61b443 (diff) | |
download | gitea-0d5dc8a064faa978a4571f565b20959dcc49f181.tar.gz gitea-0d5dc8a064faa978a4571f565b20959dcc49f181.zip |
typo fix
-rw-r--r-- | models/token.go | 4 | ||||
-rw-r--r-- | modules/auth/auth.go | 4 | ||||
-rw-r--r-- | routers/repo/http.go | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/models/token.go b/models/token.go index 3bb06dc7c0..136753c324 100644 --- a/models/token.go +++ b/models/token.go @@ -57,8 +57,8 @@ func ListAccessTokens(uid int64) ([]*AccessToken, error) { return tokens, nil } -// UpdateAccessToekn updates information of access token. -func UpdateAccessToekn(t *AccessToken) error { +// UpdateAccessToken updates information of access token. +func UpdateAccessToken(t *AccessToken) error { _, err := x.Id(t.ID).AllCols().Update(t) return err } diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 2e4c80c55e..7c4cfafcf4 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -55,8 +55,8 @@ func SignedInID(ctx *macaron.Context, sess session.Store) int64 { return 0 } t.Updated = time.Now() - if err = models.UpdateAccessToekn(t); err != nil { - log.Error(4, "UpdateAccessToekn: %v", err) + if err = models.UpdateAccessToken(t); err != nil { + log.Error(4, "UpdateAccessToken: %v", err) } return t.UID } diff --git a/routers/repo/http.go b/routers/repo/http.go index c42f751572..e6726936ed 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -126,8 +126,8 @@ func HTTP(ctx *middleware.Context) { return } token.Updated = time.Now() - if err = models.UpdateAccessToekn(token); err != nil { - ctx.Handle(500, "UpdateAccessToekn", err) + if err = models.UpdateAccessToken(token); err != nil { + ctx.Handle(500, "UpdateAccessToken", err) } authUser, err = models.GetUserByID(token.UID) if err != nil { |