for now, always load from cache on login. Improve logic later

This commit is contained in:
Brad Rydzewski 2014-08-31 10:18:09 -07:00
parent 5a8693e444
commit 71dfaa40fb

View file

@ -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}
}