frumbert / wp2moodle-moodle

Moodle end of a Wordpress to Moodle Single Sign On auth plugin
28 stars 29 forks source link

Deleting first and last name in Moodle upon login + link-click through WordPress #7

Closed morelazers closed 10 years ago

morelazers commented 10 years ago

Hey,

When I add a user through WordPress, all the are entered into the Moodle database. However, every time a user logs in to WordPress and clicks the 'go to moodle' link they have to set their first and last name before they are permitted to do anything.

Not sure if it's a problem with my setup, probably is, but some assistance would be awesome, thanks!

Tom

morelazers commented 10 years ago

Just commented out lines 118, 119, 120, 138, 139 and 140 and it seems to work okay.

frumbert commented 10 years ago

Yes, the behaviour of Moodle requires that you enter a first and last name. If it detects these fields are not set, then you end up at the profile edit screen instead of the normal login destination. I don't know of a way to override this default in Moodle. You have to set up the account properly in WP; if you couple this with a sales system (marketpress, woocommerce, etc), you typically do this anyway.

morelazers commented 10 years ago

Yeah sorry I didn't describe it well enough. I meant that the names were overridden even though they had been previously set from within Moodle.

I can attempt to recreate the issue for you if you like? Thanks for the awesome plugin(s) though. Saved our bacon on this project!