Jump to content
  • 0

Email Authentication on specific domain



Hi all, I've used Caspio before but not for some time. I'm looking at creating an app but I need a signup form that authenticates using only a specific domain that has to be verified. So it would only accept an email address from @ZYZWIDGETS.COM and wouldn't allow submission otherwise?

Anyone know if this is possible before I deep dive into the product again!!



Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You need to have JS validation on your page. For instance, let's say you have a field on called Email and you make this email required on your form. You can have the code below in the Footer of HTML Block below that field


document.getElementById('InsertRecordEmail').onchange = function (){
var email = document.getElementById('InsertRecordEmail').value;
var n = email.indexOf("@");
var domain = email.substring(n, email.length);
if (domain != '@ZYZWIDGETS.COM'){
alert("Not a valid Email");
document.getElementById('InsertRecordEmail').value = "";}



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...