General developer forum

Create custom User Login Flow

 
Picture of Vikash Kumar
Create custom User Login Flow
 

How can we create a custom user login flow. We need to query the database for user against a "username" and log him into Moodle without "password".

 
Average of ratings: -
Picture of Mark Johnson
Re: Create custom User Login Flow
Core developersParticularly helpful MoodlersPlugin developers

Moodle's authentication system is modular, you can write your own authentication plugin or use an existing one.

 
Average of ratings: -
Picture of Dale Davies
Re: Create custom User Login Flow
Particularly helpful Moodlers
Have you looked at the External Database authentication plugin? https://docs.moodle.org/31/en/External_database_authentication


You may get some mileage out of the "Internal" password format option...

Use 'internal' if you want the external database to manage usernames and email addresses, but Moodle to manage passwords. 
 
Average of ratings: -