For allowing account creation based on email domain, if using '@domain.com' for staff and students but the info in front of the '@' is different - staff is firstname.lastname students are a combo of numbers and letters.
Is there way to differentiate these accounts in Moodle at account creation time and when logging in? We want this because we want all users to be in a custom role at first time of login to Moodle.
Thank you kindly for any advice.