Login page - redirects based on username

Login page - redirects based on username

by eric w -
Number of replies: 0

Greetings!

I have a Moodle 3.1 server with 2 authentications types:  Manual, and OIDC (office 365). This creates alot of confusion for our users, and requires that we put alot of effort into informing them of which login page to use, depending on their auth type for their account.

OIDC login page =  https://moodle.domain.com

Manual login page= https://moodle.domain.com/login/


Would it be possible to create a landing page for the server which will accept their username as input, and redirect them to the appropriate login page?  Example:

IF  username is  user@domain.com, then redirect to OIDC login page.  (https://moodle.domain.com)
Else, IF username is user@personalEmail.com, then redirect to Manual login page.  (https://moodle.domain.com/login/)


Any ideas and feedback will be greatly appreciated!  Thank you!

Average of ratings: -