- Posts: 38
Joomdlehooks auto redirect bug and log out sync
- red
- Topic Author
- Offline
- Junior Member
-
normaly, when a user that is logging into joomla he should stay the the same page he was. but when this plug-in is enabled, it redirects to the joomla home. this can be very frustrating if a user has dug into the site and has forgot to log in.
It also blocks any attempt to redirect the site after log-in.
it would also be nice to sync the log-out between joomla and moodle - if possible.
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
i was able to get a log-in form to appear in moodle's header with the following hack:
you need to download this joomla extension:
www.textarea.it/en/joomla-extensions.html
it helps log-in to joomla externaly.
in the moodle header i put the following code:
i tried modifying the redirect method to take me to the right page, but this works only when joomdlehooks is off. so for now you get routed back to joomla. just like from any page in joomla.
it would be great if the bug could be solved and then i can issue my hack to the auto-login plugin so it routs back even to the moodle page you were!
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7926
Them yes, you are right:
- Redirection will not work with Joomdle enabled
Why?
- I just realized yesterday that they way SSO is coded, all actions that should be done after the joomdlehooks plugin are not executed. One of them is the redirection.
I already put this on my list to try to find another way of doing SSO without this problems.
As for syncing log-out, what do you mean? There is already logout sync....
Or do you mean session sync?
As for the second post I am a little lost: do you want to login to Joomla from Moodle?
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
This would be much appreciated!- I just realized yesterday that they way SSO is coded, all actions that should be done after the joomdlehooks plugin are not executed. One of them is the redirection.
I already put this on my list to try to find another way of doing SSO without this problems.
antonio wrote:
simply put, when i log out of joomla the user in moodle is still online and vise versa... it would be nice to have joomla also log out of moodle.As for syncing log-out, what do you mean? There is already logout sync....
Or do you mean session sync?
antonio wrote:
I have the same header for joomla and moodle. this header contains a log-in form that can be visible from all pages. the second post shows how to make it possible to log into joomla directly from a form in moodle. so you don't have to redirect to joomla's login page in order to log in from moodle.As for the second post I am a little lost: do you want to login to Joomla from Moodle?
once you fix the redirect issue, it will also be able to send you back to the link you visited
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7926
As for the other issue: we would need a simple custom login module in Moodle that sends the data to Joomla to log in as usual.
But, this would not make them look alike. I mean, login block in moodle would be different from Joomla's.
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
www.synthschool.com (joomla)
www.synthschool.com/study (moodle)
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7926
I am not really into 'hacking' joomla or moodle. I mean I always prefer solutions that do not involve modifying core Joomla or Moodle code.
But for sure your ideas will make us think of ways to getting the same goals my other means. Thanks for sharing!
Please Log in or Create an account to join the conversation.
- red
- Topic Author
- Offline
- Junior Member
-
- Posts: 38
if there was some kind of joomdle API i maybe could have done something more elegant
anyhow i agree its an ugly solution. thats why i posted it here. perhaps we can find a way to bring such a feature into production...
Please Log in or Create an account to join the conversation.