SSO issue with MooWoodle Plugin

SSO issue with MooWoodle Plugin

by arsalan titi -
Number of replies: 5
Hi,
I am using MooWoodle plugin to integrate Moodle and WordPress(WooCommerce).
There is an issue in authentication process.
When a new wordpress user login to Moodle (for the first time) through the Course Link in My Courses tab, a Moodle page appears which says "You must change your password to proceed".  How can I remove this option? I mean users can login to Moodle without changing the password for the first time.

P.s:
Password Policy is unchecked in Moodle site policies.


Thank you


Average of ratings: -
In reply to arsalan titi

Re: SSO issue with MooWoodle Plugin

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Probably best to ask the People at DualCube who produce the plugin. I had never heard of it until you asked the question, so I suspect other people reading this forum will not have either. Let us know what answer you get, Moodle and Wordpress integration i a big thing.
In reply to Marcus Green

Re: SSO issue with MooWoodle Plugin

by arsalan titi -
I've sent DualCube support some emails but no response!
The plugin is working perfect. And it integrates wp and moodle very well.I wish DualCube support or anyone else can resolve the mentioned issue.
In reply to arsalan titi

Re: SSO issue with MooWoodle Plugin

by Benoit Ter Burg -

Hi, 

Do yo receive any answer yet ? 

I get same issue (confusing for users and not very good UX experience…) 

Thanks for helping if you can 

Regards. 

Benoit @ DiDaXo


In reply to Benoit Ter Burg

Re: SSO issue with MooWoodle Plugin

by arsalan titi -
Hi,
Unfortunately I haven't receive any answer yet!
In reply to arsalan titi

Re: SSO issue with MooWoodle Plugin

by Benoit Ter Burg -

Hi 

Got it.  Just try !  It works fine for me.

You have to modify this  when creating user in Moodle form Woocommerce/WordPress

This process is supportded through php script and page 'class-moowoodle-enrollment' from moowoodle plugin


1 : Expand  'moowoodle.3.0.zip' and got the file 'class-moowoodle-enrollment' in directory  classes'

Go to lines 152/153,

152 $user_data['preferences'][0]['type'] = "auth_forcepasswordchange";

153 $user_data['preferences'][0]['value'] = 0;


2 : Modify value; 

Values= 

0= Do NOT force to change password 

1= force to change password  (default)


3 :  then upload modified file on your hosted Moodle in the right plugin directory.


That's all

++

Ben