In Rentalhive, Is it possible to restrict the sign-up to just people having only .edu email ids or just specific college email ids (eg. @abc.edu) ? Because my business involves only students and I don’t want other than the selected colleges to sign up.
This code validates the email field during registration and only allows emails ending with .edu. If a user tries to register with a different email domain, they’ll see an error message.
To allow multiple educational domains (like .edu, .ac.uk, etc.), you can modify the pattern: