Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Re: Create account and pass authentication details to moodle

$
0
0
by toby saunders.  

To log someone into moodle I used

authenticate_user_login($user->username, $plain_password);
complete_user_login($user);

I did this in my auth plugin in the user_signup function and it worked to log the user in at the same time as signing them up. You will probably want to redirect them somewhere useful afterwards.

Hope this helps


Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>