mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
for now, always load from cache on login. Improve logic later
This commit is contained in:
@@ -87,7 +87,7 @@ func (h *LoginHandler) GetLogin(w http.ResponseWriter, r *http.Request) error {
|
||||
u.Secret = login.Secret
|
||||
u.Name = login.Name
|
||||
u.SetEmail(login.Email)
|
||||
u.Syncing = u.IsStale()
|
||||
u.Syncing = true //u.IsStale() // todo (badrydzewski) should not always sync
|
||||
if err := h.users.Update(u); err != nil {
|
||||
return badRequest{err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user