Commit Graph

43 Commits

Author SHA1 Message Date
Thomas Rubini
3361babf05
finish controller manageUser/search 2023-01-20 19:12:54 +01:00
Thomas Rubini
f7e0f5885f
use Kernel Utils getOrDie function 2023-01-20 19:12:54 +01:00
Thomas Rubini
637782f907
refactor admin checking function to Session 2023-01-20 19:12:54 +01:00
Thomas Rubini
b290394181
start to make manageUser/search 2023-01-20 19:12:54 +01:00
Thomas Rubini
fd9e25ca8c
create ManageUserController and admin-only access 2023-01-20 19:12:54 +01:00
Thomas Rubini
5f61d15a89
add search functionality to RecipeModel 2023-01-20 18:30:16 +01:00
Thomas Rubini
7c6a5441a7
refactor 'search_term' to 'query' 2023-01-20 18:25:32 +01:00
Thomas Rubini
28810d0b7c
change refs to view search/search to recipe/search 2023-01-20 18:21:39 +01:00
Thomas Rubini
38e4e16856
add search action 2023-01-20 18:08:27 +01:00
Thomas Rubini
219a5b0f5d
add kernel class 'Utils' with 'getOrDie()' 2023-01-20 17:58:06 +01:00
Capelier-Marla
6a375e97a7 now category display imgs and redirect to the right page 2023-01-20 10:04:49 +01:00
Capelier-Marla
f8e81d6136 renamed all categories in category 2023-01-20 09:50:54 +01:00
Thomas Rubini
6a91c2a9be
change keys passed to the view 2023-01-20 09:20:57 +01:00
Nicolas
69ee3faa65 fix category page with controller 2023-01-19 16:55:09 +01:00
Thomas Rubini
4c02a3ec74
add CategoriesController 2023-01-19 16:17:45 +01:00
Capelier-Marla
2bb1eb18d9 fixed recipes view and translations 2023-01-18 14:21:26 +01:00
Capelier-Marla
12a6d649a4 edit page done from data in Database and has dynamic js 2023-01-18 13:54:11 +01:00
Thomas Rubini
7f3ba9a918
Merge pull request #21 from ThomasRubini/getordie 2023-01-17 16:05:08 +01:00
Thomas Rubini
0eadb9f388
refactor get_or_die() to getOrDie() 2023-01-17 16:04:46 +01:00
Thomas Rubini
f3109c51a0
Add user/delete method 2023-01-17 16:03:49 +01:00
Thomas Rubini
19cf44bc00
Create /user/update route 2023-01-17 15:53:15 +01:00
Capelier-Marla
2469823f9d
moved edit page to user view, to replace view.php, and edited Controller to show the right page 2023-01-17 15:24:38 +01:00
Thomas Rubini
22d8e271b6
Set the default user action to view/edit 2023-01-17 15:05:32 +01:00
Thomas Rubini
a14404f958
Redirect user from /user/login from /user/view if login 2023-01-17 15:00:58 +01:00
Thomas Rubini
6652d97c53
Show error message on login and register 2023-01-17 14:30:17 +01:00
Thomas Rubini
4d17cda252
Fix Session manager: do not always place cookie 2023-01-17 14:21:08 +01:00
Thomas Rubini
dcf45f3492
add Session class in Kernel 2023-01-17 11:38:13 +01:00
Thomas Rubini
82cb01ff18
Add possibility to logout 2023-01-17 10:06:37 +01:00
Thomas Rubini
4481803e60
Only store ID and sessionand get other information dynamically 2023-01-17 09:36:06 +01:00
Thomas Rubini
4b3a7a2f38
Check if login properly 2023-01-17 09:25:47 +01:00
Thomas Rubini
78bf8554b8
change DB field 'NAME' into 'USERNAME' 2023-01-17 09:25:44 +01:00
Thomas Rubini
7fae33a7b3
make basic account view 2023-01-17 09:00:13 +01:00
Thomas Rubini
9f206183a3
Use email instead of username for authentication 2023-01-16 23:47:12 +01:00
Thomas Rubini
b12dd563d8
replace the temporary login page with the final one 2023-01-16 23:38:30 +01:00
Thomas Rubini
0be83d3ecc
migrate common/404 to errors/404 2023-01-16 23:25:00 +01:00
Thomas Rubini
18d6298330
basic login/register system 2023-01-16 22:46:34 +01:00
Thomas Rubini
8ebfd5c45e
Merge pull request #5 from ThomasRubini/default_page 2023-01-16 21:02:00 +01:00
Thomas Rubini
4c443644b8
implement Default page 2023-01-16 21:01:24 +01:00
Thomas Rubini
6dc7ec3588
Implement example 404 page 2023-01-16 20:58:09 +01:00
Thomas Rubini
87e8f9247e
move recipe data creation to RecipeModel and use real SQL database 2023-01-16 20:29:18 +01:00
Thomas Rubini
95ad2e1d6a
Example implementation of a controller 2023-01-12 17:15:19 +01:00
Thomas Rubini
26e97c2916
fixed forgotten fonction 2023-01-12 15:13:21 +01:00
Thomas Rubini
94dafd735c
switch code to english 2023-01-12 14:31:06 +01:00