mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02:00
for now, always load from cache on login. Improve logic later
This commit is contained in:
parent
5a8693e444
commit
71dfaa40fb
@ -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}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user