for now, always load from cache on login. Improve logic later
This commit is contained in:
parent
5a8693e444
commit
71dfaa40fb
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func (h *LoginHandler) GetLogin(w http.ResponseWriter, r *http.Request) error {
|
||||||
u.Secret = login.Secret
|
u.Secret = login.Secret
|
||||||
u.Name = login.Name
|
u.Name = login.Name
|
||||||
u.SetEmail(login.Email)
|
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 {
|
if err := h.users.Update(u); err != nil {
|
||||||
return badRequest{err}
|
return badRequest{err}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue