21 Commits

Author SHA1 Message Date
3604f1498c Update existing LDAP instance configuration instead of replacing it. Caching was not enabled as per the configuration, so this fixes this. 2025-04-27 14:12:24 +10:00
808934ebfe Change we now store logged in user details in session, instead of cookies.
This is so when the session expires, the logged in user details are expired as well, which wasnt happening with cookies.
2025-04-27 14:12:24 +10:00
21a690c6dd Move our /api routes into /ajax under web.php. The /api routes werent authenticated and may not have been using the logged in users details 2025-04-27 14:12:24 +10:00
0083e9158b Move out view variables until after our session has been setup. This was needed so that auth()->user() could be resolved correctly and needed to be done after we have started the session and swapped in the users cookies 2025-04-27 14:12:24 +10:00
8ab5b4f35c Move direct controller direct view calls to route/web, add global $server to use in views, negating the need to use config('server') 2025-03-16 10:13:03 +11:00
732f777c75 Rename our configuration keys to ldap/ldaps/startls, they are not openldap specific 2025-03-07 08:33:08 +11:00
0684424328 Force PLA to not allow guests viewing the site, and thus requiring a login.
This should close #288
2025-02-26 17:28:54 +11:00
f20d9891f2 Fix user swap broken in db4b901 2025-02-26 17:21:00 +11:00
16452ebfa9 Change use of Config::class for consistency 2025-01-19 22:17:36 +11:00
db4b90183f Fix excess memory being used when building schema
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m23s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m29s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s
2025-01-13 22:03:47 +11:00
81014b9509 Update laravel framework, to laravel 11 2025-01-12 18:26:26 +11:00
acc6598da1 Move ApplicationSession::class earlier, we are dependant on config('server') existing when loading user details 2024-01-20 16:07:44 +11:00
cb06f3dcb6 Catch exception when trying to connect to update server 2024-01-20 10:37:47 +11:00
7458001f5a Enabled version update check 2023-03-03 16:07:11 +11:00
35596ec867 Rename GuestUser to ApplicationSession as middleware to hold any site wide variables 2023-03-02 19:07:45 +11:00
ee556582d2 Start of hook to check for version updates 2023-03-02 09:55:33 +11:00
Deon George
6751c9dd81 Enable authentication if the LDAP server has multiple base DNs. Store the user's credentials in a cookie/session, and swap them out to the configured credentials when logged in. 2023-01-31 14:16:56 +11:00
Deon George
daeea9a1f6 Update laravel to 9.x 2023-01-31 10:44:35 +11:00
Deon George
2ccc1d3b83 Framework update and updates from other projects,remove leenooks/laravel
Framework updates, and hack to get CI testing working
2021-12-11 00:24:00 +11:00
Deon George
f3282bed38 Framework upgrade to Laravel 7 2021-12-10 23:51:47 +11:00
Deon George
ed7087c802 Initial Laravel Base 2021-12-10 23:51:47 +11:00