39 Commits

Author SHA1 Message Date
Marcin-Ramotowski
74a58879ce Refactored code responsible for finding user in database 2025-04-02 20:02:34 +00:00
Marcin-Ramotowski
d325a52222 Refactored test code 2025-04-02 19:28:20 +00:00
Marcin-Ramotowski
546d26ada0 Added test for user edit 2025-04-02 19:22:12 +00:00
Marcin-Ramotowski
acf4b1c26c Added test for user remove 2025-04-02 19:21:48 +00:00
Marcin-Ramotowski
37e89b60af Added test for user logout 2025-03-29 21:18:24 +00:00
Marcin-Ramotowski
2632bdf994 Changed deprecated query.get and query.get_or_404 methods to other equivalents 2025-03-29 21:12:00 +00:00
Marcin-Ramotowski
8637eaa96f Added revoking token during logout 2025-03-29 20:57:01 +00:00
Marcin-Ramotowski
99dd5148b1 Now fabric function creates app 2025-03-29 20:32:38 +00:00
Marcin-Ramotowski
3ad5f0ca94 Added more cases to user tests to check all access levels 2025-03-27 22:38:16 +00:00
Marcin-Ramotowski
0891ba7d87 Added test for user endpoints 2025-03-27 20:01:04 +00:00
Marcin-Ramotowski
3552c251bf Moved utils functions to separate file 2025-03-19 21:02:02 +01:00
Marcin-Ramotowski
31480c5c55 Removed task model 2025-03-19 20:56:15 +01:00
Marcin-Ramotowski
90a7a8a72c Removed task views 2025-03-19 20:06:03 +01:00
Marcin-Ramotowski
9d3ea22fe8 Improved task data validation and error handling 2025-03-17 20:29:15 +00:00
Marcin-Ramotowski
684b667f3a Turned off debug mode 2025-03-17 19:23:52 +00:00
Marcin-Ramotowski
a44059fab3 Extended due_date format to contain also time 2025-03-17 19:10:27 +00:00
Marcin-Ramotowski
7142236b47 Login returns also user_id 2025-03-16 21:14:09 +00:00
Marcin-Ramotowski
c1c052a533 Removed unnecessary invisible unicode characters 2025-03-16 16:20:09 +00:00
Marcin-Ramotowski
ff07c3433e Added more env variables 2025-03-16 15:44:49 +00:00
Marcin-Ramotowski
b2dc4856cb Changed class methods to static methods 2025-03-16 14:07:21 +00:00
Marcin-Ramotowski
9bce8b0a46 Improved endpoint to edit task data 2025-03-16 13:55:30 +00:00
Marcin-Ramotowski
8bb71309ea Improved endpoint to edit user data 2025-03-16 13:18:25 +00:00
Marcin-Ramotowski
0cd57c0973 Improved code readability 2025-03-16 11:26:01 +00:00
Marcin-Ramotowski
0e28559149 Changed http code returned after login failed 2025-03-16 08:09:42 +00:00
Marcin-Ramotowski
9f5bee3696 Corrected validation if user have privileges to create admin account 2025-03-16 08:03:15 +00:00
Marcin-Ramotowski
983b787bbb Added default admin account creation if database is empty 2025-03-16 07:38:59 +00:00
Marcin-Ramotowski
abde1ac590 Now hashes are saved to database instead of plaintext passwords 2025-03-16 07:37:46 +00:00
Marcin-Ramotowski
7b6e23be66 Improved access control for task views 2025-03-15 19:58:21 +00:00
Marcin-Ramotowski
796a8faf54 Added possibility to customize error messages 2025-03-15 19:57:51 +00:00
Marcin-Ramotowski
822ca69ccb Corrected error handling during access validation 2025-03-15 19:08:59 +00:00
Marcin-Ramotowski
0171c62650 Refactored code to limit access to other user accounts 2025-03-15 17:15:13 +00:00
Marcin-Ramotowski
b0ad83b9a0 Only admin can edit other users accounts 2025-03-15 16:37:35 +00:00
Marcin-Ramotowski
1661e45e04 Only admin can remove other users accounts 2025-03-15 16:31:30 +00:00
Marcin-Ramotowski
411549d097 Only admin can create admin accounts 2025-03-15 16:27:17 +00:00
Marcin-Ramotowski
157dff8768 Limit access for users to get users details 2025-03-15 16:18:51 +00:00
Marcin-Ramotowski
d7c089aa83 Added blocking not authorized access 2025-03-15 15:29:10 +00:00
Marcin-Ramotowski
c0401a2eb0 Added admin role 2025-03-15 14:54:25 +01:00
Marcin-Ramotowski
c63c785686 Updated code for Flask API container 2025-03-14 22:06:20 +00:00
Marcin-Ramotowski
764e010203 Moved API code to different directory 2025-03-14 20:42:52 +01:00