×
Joomdle 2.x Installation
Import users in Moodle with a temp password & joomdle authentication
3 months 3 weeks ago
Topic Author
Import users in Moodle with a temp password & joomdle authentication #1
Hi,
My customer wants to import users or add a user in Moodle with the option generate temporary password and mail the user. Authentication method Joomdle, charset UTF8 when importing.
If you create or import a user, the account is created, the temp mail is sent, the user is added in Joomla (no specials like change password on first login) and the user is created in Joomdle (all nice green).
But the user is unable to login in Joomla with the temp password or Moodle.
If you do a "forget password" in Joomla and reset the password, all works fine (SSO).
This has worked until we do not know.
Can you give us a hint please? We have a testing environment where only cron is not working while importing via a .csv.
best regards, Marie-Anne
Joomla 4.4.9
Moodle 4.5
Joomdle latest version
PHP 8.1
Mysql 8
My customer wants to import users or add a user in Moodle with the option generate temporary password and mail the user. Authentication method Joomdle, charset UTF8 when importing.
If you create or import a user, the account is created, the temp mail is sent, the user is added in Joomla (no specials like change password on first login) and the user is created in Joomdle (all nice green).
But the user is unable to login in Joomla with the temp password or Moodle.
If you do a "forget password" in Joomla and reset the password, all works fine (SSO).
This has worked until we do not know.
Can you give us a hint please? We have a testing environment where only cron is not working while importing via a .csv.
best regards, Marie-Anne
Joomla 4.4.9
Moodle 4.5
Joomdle latest version
PHP 8.1
Mysql 8
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
Import users in Moodle with a temp password & joomdle authentication #2
Hi.
Unfortunately, I have not found a way to make this work now.... although for your use case it might be possible to create something to help.
The problem: Moodle changed its password hashing algorithm. Previously, it was the same as Joomla's, but now they are different.
This is a problem because the user_created event in Moodle gets the password hashed. Before, we just synced it to Joomla, because the hash was the same.
Now, we cannot do that, so the password set on user creation in Moodle will not work.
For your specific use case, it might be possible to create a Moodle plugin that listens for the user_created event, and then sets a new random password, syncs it to Joomla and sends it to the user.
Unfortunately, I have not found a way to make this work now.... although for your use case it might be possible to create something to help.
The problem: Moodle changed its password hashing algorithm. Previously, it was the same as Joomla's, but now they are different.
This is a problem because the user_created event in Moodle gets the password hashed. Before, we just synced it to Joomla, because the hash was the same.
Now, we cannot do that, so the password set on user creation in Moodle will not work.
For your specific use case, it might be possible to create a Moodle plugin that listens for the user_created event, and then sets a new random password, syncs it to Joomla and sends it to the user.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
Topic Author
Import users in Moodle with a temp password & joomdle authentication #3
Thank you Antonio for your quick answer. Not what we hoped to hear, I'll discuss it with my client. Best regards Marie-Anne
Please Log in or Create an account to join the conversation.