27 Commits (435256beded091e1298ec14c764d6185b18116e6)

Author SHA1 Message Date
Tom Hacohen bf7590dd91 Fix linting errors. 5 years ago
Tom Hacohen dac6ba5900 Login: automatically log out on expired token.
This is a bit of a workaround.
The problem is that we cache auth tokens, but that auth tokens can expire.
Thins means that we could have a stale auth token after coming back to
the app after a long time, so we need to fetch a new one.

Logging out is a bit of a nuclear option, but since this is a rare
scenario, it can do for now.
5 years ago
Tom Hacohen 0ce83defcc LoginGate: show an error if the user is inactive. 5 years ago
Tom Hacohen 0b18cac914 Licensing: add license headers to source files. 5 years ago
Tom Hacohen 118d26ce83 Simplify the fetch credentials structure to not use the fetch record.
It was thrashing the redux store. We made the same change for the ios app.
5 years ago
Tom Hacohen 5301b546df LoginGate: move to be a function component. 5 years ago
Tom Hacohen b4634abff4 Fix new account setup.
We were getting a 404 because the user info doesn't exist, and were erroring
because of it, which was not calling the then (just the catch).

We now handle the error condition.
5 years ago
Tom Hacohen fc4b3294f1 Login screen: gracefully handle wrong encryption passwords. 5 years ago
Tom Hacohen fbb3aa154c Login Form: fix new user detection following promise middleware changes. 5 years ago
Tom Hacohen ab5495e221 Eslint: update rules and adjust code accordingly. 5 years ago
Tom Hacohen 11dd883f5f lint: replace tslint with eslint and fix new warnings and errors. 5 years ago
Tom Hacohen 514f4ccddb Login: show text about setting the encryption key on first login. 5 years ago
Tom Hacohen 21e7d7d822 Add missing img alt text. 5 years ago
Tom Hacohen ad45ad3f83 Update tslint and fix warnings. 6 years ago
Tom Hacohen 7da0a6009b More tslint fixes. 6 years ago
Tom Hacohen 7336fe5527 Change the max container width to 30rem. 6 years ago
Tom Hacohen ae26e34eb4 Update react, typescript recompose and etc. 6 years ago
Tom Hacohen ac31f7093f Add a basic link about signed pages. 7 years ago
Tom Hacohen 5e59557335 Add a link to the etesync website from the login page. 7 years ago
Tom Hacohen 4833a98763 Split fetching credentials and key derivation. 7 years ago
Tom Hacohen b769c18021 Show a shorter login form (only enc password) if already logged in.
This is extremely useful for iOS devices where a PWA's session storage
is deleted every time it's minimised, and it's also useful for people
having multiple tabs open.
7 years ago
Tom Hacohen 232ea823d0 LoinGate: rename the incorrectly named class name. 7 years ago
Tom Hacohen 8d3a06cdfd Split the login credentials and the encryption key.
We do this so we can persist the login info to local storage, but
still keep the encryption key safe.

This version will fails if you clear the session storage. This will be
fixed in the next commit.
7 years ago
Tom Hacohen a32002eabd Replace the a tag with an ExternalLink component.
This lets us handle behaviour more consistently, for example by opening
external links in a new tab.
7 years ago
Tom Hacohen 441549f41d Move LoginForm to the component dir. 7 years ago
Tom Hacohen e710e89200 Remove server url awareness from LoginForm making it a cleaner component. 7 years ago
Tom Hacohen 6a586ac38f Rename the Root to LoginGate because that's all it does. 7 years ago