I am a sort of a beginner in website development and a new user to SO. Here is what I want to implement for a client. They use gmail custom-email app as their corporate email. They want to restrict access to their website private area for users with an email account with their company (which is actually a gmail account). Something like what we have for login into SO. Only SO would allow any gmail/yahoo etc user to login but they want only ppl with their custom gmail email id.
Share
So I would probably rock it so that registration requires an @yourcompanydomain email. Neglect the gmail factor, and focus more on the syntax of the email address being registered. Then, require email verification.
I ran a similar script for our employee perks portal, simply checked on registration for @mycompanydomain in the email. If it didn’t exist, they can’t proceed.