94703bcf37
GODT-2223: Treat label/message deletion errors as non-critical
2023-01-23 21:25:15 +01:00
c8925cd270
GODT-2223(test): Assert that bad request errors lead to user logout
2023-01-18 14:10:23 +00:00
6d0a128111
Other: Update copyright year
2023-01-02 11:09:11 +01:00
792317e945
Other: Prevent double login
2022-12-14 10:15:40 +01:00
1aca2cde71
GODT-2181(test): Refactor integration test setup a bit
2022-12-13 10:28:59 +01:00
e601245f01
Other(chore): Bump major version to v3
2022-11-23 16:08:27 +01:00
ad1fb47b0d
Other: Switch from liteapi to go-proton-api
2022-11-23 15:17:56 +01:00
ae87d7b236
GODT-1913: pass reporter to gluon, limit restarts, add crash handlers.
2022-11-16 13:48:31 +01:00
59278913ca
GODT-2037: Handle and log API refresh event
2022-11-16 13:48:31 +01:00
4c4c592f31
GODT-2008: Add unit test asserting that primary address is listed first
2022-11-16 13:48:30 +01:00
bc7912e8fb
GODT-2022: Fix change between address modes
2022-11-16 13:48:30 +01:00
af542a2fc1
Other: Ensure logout works when offline
2022-11-16 13:48:30 +01:00
2bda47fcad
Other(refactor): Less unwieldy user type in Bridge
...
Instead of the annoying safe.Map type, we just use a normal go map
and mutex pair, and use safe.Lock/safe.RLock as a helper function
2022-11-16 13:48:30 +01:00
6fbf6d90dc
Other: Fix IMAP/SMTP/Login leaks/race conditions
...
Depending on the timing of bridge closure, it was possible for the
IMAP/SMTP servers to not have started serving yet. By grouping this in
a cancelable goroutine group (*xsync.Group), we mitigate this issue.
Further, depending on internet disconnection timing during user login,
it was possible for a user to be improperly logged in. This change
fixes this and adds test coverage for it.
Lastly, depending on timing, certain background tasks (updates check,
connectivity ping) could be improperly started or closed. This change
groups them in the *xsync.Group as well to be closed properly.
2022-11-16 13:48:30 +01:00
1729c085c7
Other: Fix user logout hangs due to sync
2022-11-16 12:26:09 +01:00
bf29090ffa
Other: Fix log message, rename test fixture
2022-11-16 12:26:09 +01:00
e10cd2a3ed
GODT-1901: Allow to set IMAP SSL from UI
2022-11-16 12:26:09 +01:00
ef2dea89b4
Other: Safer vault
2022-11-16 12:26:09 +01:00
2450511555
Other: Put back split login process in backend
2022-11-16 12:26:09 +01:00
14a578f319
Other: Linter fixes after bumping linter version
2022-11-16 12:26:09 +01:00
509a767e50
GODT-1657: More stable sync, with some tests
2022-11-16 12:26:09 +01:00
6ac68984f2
GODT-1609: Fix bridge password encoding
2022-11-16 12:26:09 +01:00
b536b8707e
GODT-1609: use byte array for password
2022-11-16 12:26:09 +01:00
e9672e6bba
GODT-1815: Combined/Split mode
2022-11-16 12:26:08 +01:00
4d2baa6b85
Renamed bridge to general users and keep bridge only for bridge stuff
2020-05-25 09:02:34 +02:00
e95aece6d3
refactor: don't pass client directly to store syncer
2020-04-21 08:36:39 +00:00
80f4e1e346
Fixing unit tests for client manager.
...
* [x] pmapi: refresh auth uid won't change
* [x] bridge tests:
* update mocks
* delete auth when FinishLogin fails
* check for mailbox password
* add `gomock.InOrder` for better test control
* [x] fix linter issues except TODOs
* [x] make rootScheme unexported
* [x] store tests: update mocks
2020-04-21 08:36:39 +00:00
042c340881
feat: make store use ClientManager
2020-04-21 08:36:38 +00:00
6e38a65bd8
feat: improve login flow
2020-04-21 08:36:38 +00:00
17f4d6097a
We build too many walls and not enough bridges
2020-04-08 12:59:16 +02:00