Grzegorz Leoniec
2edd5fe294
Merge branch 'master' into 37-full-text-search-top-bar
2019-03-01 11:11:48 +01:00
Matt Rider
2d0c608380
Fix lint
2019-02-27 08:12:59 -03:00
Robert Schäfer
ea9f896ef8
Refactor store to use the new backend API
2019-02-27 11:06:02 +01:00
Robert Schäfer
34d79dfc64
Log out the user if fetchUser was unsuccessful
2019-02-27 10:45:46 +01:00
Robert Schäfer
b0262e9b76
Remove locationName and about
...
as default properties of the currentUser query.
We don't need it all the time. Somewhere in the frontend, the call to
`fetchCurrentUser` is abused to refresh some data of the user to be
edited.
2019-02-26 16:26:05 +01:00
Robert Schäfer
71ab2f3828
Get rid of JWT_SECRET once and for all
...
* refactor store/auth.js not to use `delete Object`
* refactor store/auth.js to have less redundancy
* implement fetchCurrentUser without knowing the id beforehand
* test fetchCurrentUser and init
2019-02-26 16:26:04 +01:00
Grzegorz Leoniec
33cc5d5982
Store last search value in store
2019-02-19 12:42:51 +01:00
Grzegorz Leoniec
61a00feb60
Use VueX store for searching and better testabillity
2019-02-19 12:30:02 +01:00
Grzegorz Leoniec
9982102f55
merged master in
2019-01-16 19:02:28 +01:00
Grzegorz Leoniec
17a52fa8e5
Added Modal to our Styleguide
2019-01-11 14:54:21 +01:00
Grzegorz Leoniec
bfee061a26
Added JWT_SECRET from env var
2019-01-09 17:22:02 +01:00
Grzegorz Leoniec
47c858d9d2
Improved locale handling
2019-01-04 15:03:35 +01:00
Grzegorz Leoniec
bbe1d4e7c3
merged master in
2018-12-29 16:09:06 +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
f57c45bb3b
added locations and about me text
2018-11-12 14:27:12 +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