nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

Fix bin/inbox-auth to properly update account credentials instead of … #388

Closed tbraeutigam closed 7 years ago

tbraeutigam commented 8 years ago

Fixes #386

Summary: Adds a conditional to to auth_handler.update_account instead of auth_handler.create_account when '--reauth' parameter is passed to inbox-auth.

This enables less wasteful account credential updates in the open source sync engine by:

Patching this file is the only manual step involving the engine code for setting it up on lxd right now: https://github.com/tbraeutigam/nmgmt