Default Schedule Page #1078
Replies: 6 comments
|
I think that’s definitely possible. You could customize it by modifying the processUserData function in Presenters/Authentication/ExternalAuthLoginPresenter.php. Basically, you could detect the user’s email domain there and set the appropriate schedule for their school by updating the default_schedule_id column, instead of using the default one. This way, each user would automatically see the schedule corresponding to their school when they log in. |
|
Have you got a example config i could look at? Im getting nowhere with it and its driving me mad |
|
It turned out to be a bit more complicated than I thought; the AI solved it as follows, but I haven't verified it. |
|
That is perfect. AI for me was telling me to do the completely wrong thing haha. Do you also know if its possible to automatically add users to a group when they login through Microsoft and it creates the account on the system? |
|
I know it's possible to automatically add a group to a single group in manage-groups, but I don't know how to do it through code. |
|
Not a problem thanks for your help :) |
Uh oh!
There was an error while loading. Please reload this page.
Hello
Im currently building and testing a new LibreBooking system. We have it setup to sign in with Microsoft but out tenant is made up of 4 schools with different email addresses.
My plan was to have 4 different schedules for each site. Is it possible when they go to the schedule page instead of seeing the default is it possible to have it so the schedule for that school?
Cheers,
Scott
All reactions