I need to automatically enroll users who register for my main web site

Install and configure FormaLMS and DoceboCE
Post Reply
RepoMeister
Newbie
Posts: 6
Joined: Mon Aug 14, 2017 6:51 pm
Version: forma.lms 1.4.2

I need to automatically enroll users who register for my main web site

Post by RepoMeister »

What is the correct way to manually add a record to the Forma core_user table from outside the scope of a Forma $_SESSION? I need the student's userid and password they created at registration on my main site to be added to the Forma DB as well. I can populate the fields needed except for core_user.pass - I don't know what hashing algorithm you are using.
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: I need to automatically enroll users who register for my main web site

Post by max »

You should use the API

Search in the forum, they are discussed in several threads and there is also a .pdf with the list of all the available API
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
RepoMeister
Newbie
Posts: 6
Joined: Mon Aug 14, 2017 6:51 pm
Version: forma.lms 1.4.2

Re: I need to automatically enroll users who register for my main web site

Post by RepoMeister »

Thanks for the pointer. I found a post that was very helpful and the poster provided this link: download/file.php?id=324 to a PDF file with the web service API.

*EDIT*:
In short, MD5 is currently being used for password hashing
Post Reply