16 Commits (3c3ffb15d38b41c4922b71e49e5e8c77317e6c73)

Author SHA1 Message Date
Tom Hacohen 3c3ffb15d3 Implement logout and workaround an issue with redux-persist not persisting.
For some reason it doesn't persist when credentials === undefined.
7 years ago
Tom Hacohen 94c6916447 Add a basic redux store. 7 years ago
Tom Hacohen 00d8b43cc5 Login: change login form to be a controlled component.
I thought it would be easier to use an uncontrolled component, but
it fails when loading fails. The form just clears.

This fixes it.
7 years ago
Tom Hacohen 154beee6d1 Fix input types for the login page. 7 years ago
Tom Hacohen 336a07e065 Remove the old welcome to react header. 7 years ago
Tom Hacohen 3faa7b3ed6 Simplify calls to setState, apparently it already shallow merges. 7 years ago
Tom Hacohen f8ee484c3b Add some login form validation. 7 years ago
Tom Hacohen 516bdd2622 Improve log in look and feel. 7 years ago
Tom Hacohen 622805a5b6 Improve the look and feel of the login form. 7 years ago
Tom Hacohen ef92632885 Change to the production API and allow setting a custom server. 7 years ago
Tom Hacohen 0a05095da2 Home: redirect to the journals view. 7 years ago
Tom Hacohen d7c90ccb0a Move to material-ui. 7 years ago
Tom Hacohen 295867a439 Login form: add a missing prevent default. 7 years ago
Tom Hacohen 07c986b01d Add a very basic login page and cache the keys in session storage. 7 years ago
Tom Hacohen af921e1b28 Move the header back outside of the internal components. 7 years ago
Tom Hacohen 132f63e2a6 Move all of the etesync context to a separate place.
This means that encryption key derivation and token access
are not called as often.
7 years ago