Commit Graph

57 Commits

Author SHA1 Message Date
JP1998 df75387164 Fix login and logout to actually work
Because of several issues the auth token has not been stored,
which lead to severe errors when trying to log out.
This issue has now been solved.
2018-12-03 15:20:14 +01:00
JP1998 f85863d965 Remove header, that is no longer being transmitted 2018-12-03 14:41:59 +01:00
JP1998 d0337fb640 Add actually working login and logout 2018-12-03 14:33:32 +01:00
Felix Hamme 9dd2466e10 Export request methods in api.js and include the api url in them 2018-12-03 12:46:02 +01:00
JP1998 fdfcd5087d Add saving and sending of authentication headers
The actual authentication headers are now able to be easily sent
and saved for and after every request to the api.
2018-11-30 16:41:28 +01:00
JP1998 a927f97e32 Solve a bug with the error messages of unknown errors when logging in 2018-11-30 13:22:40 +01:00
JP1998 91b532b6cd Add api calls with persistent user data
Added login and registration api calls to the function pool,
while the application state is persistet through localStorage.
Also (if signed in) the username will be displayed in the
navigation bar of the website.
2018-11-29 16:19:02 +01:00