14 Commits

Author SHA1 Message Date
Grzegorz Leoniec
17a52fa8e5
Added Modal to our Styleguide 2019-01-11 14:54:21 +01:00
Robert Schäfer
b320ef30fc Fix lint 2018-12-19 18:12:10 +01:00
Robert Schäfer
16997ee63d Refactor login with confidence
This is why I ❤️ testing. First I wrote several tests to get
familiar with the existing code and specified everything that I believe to
be required. Then I refactor the entire method at once and the tests pass.

Note that I do **not** believe that setting the user data to `null` is
really relevant.
2018-12-19 18:04:25 +01:00
Robert Schäfer
f85081c308 Properly test the reject branch of login 2018-12-19 17:58:25 +01:00
Robert Schäfer
48467bc697 Fix lint 2018-12-19 15:24:58 +01:00
Robert Schäfer
b17686656b Test error path of #login procedure 2018-12-19 11:58:03 +01:00
Robert Schäfer
bf8f2f8877 Remove dead code 2018-12-19 11:11:12 +01:00
Robert Schäfer
d465db5906 Test store/auth#login 2018-12-19 11:11:12 +01:00
Robert Schäfer
01f5cfd481 Run yarn run lint --fix 2018-12-19 11:11:12 +01:00
Robert Schäfer
fec665eaf4 Implement+test auth.isAuthenticated() 2018-12-19 11:11:12 +01:00
Grzegorz Leoniec
68bce0c017
fixed user role check 2018-12-17 19:54:23 +01:00
Grzegorz Leoniec
76d607033f added user menu and fixed auth store 2018-10-30 18:40:04 +01:00
Grzegorz Leoniec
1735767cce added jwt login and authentication plus some toast 2018-10-17 19:57:24 +02:00
Grzegorz Leoniec
4dbe142dcb hc experiment progress 2018-10-09 14:11:21 +02:00