2 Replies Latest reply on Feb 19, 2014 11:09 AM by Stephen Huston

    Stopping Account Duplication


      I have written a login script that uses the users email as the base, checks to see if that email exists in my contact database, and if it does exist to add that email address as an account. However, I don't know how to have my script check to see if an account based off the email address already works. I need it to check if it exists and if it does, to not add the account. Any ideas?

        • 1. Re: Stopping Account Duplication

          This is pretty standard for web logins. You first check to see if it exists and offer to email the "forgotten" password if found. If they are just "guessing" and it's not their account, they won't get the password. So the "check" is really a FIND before ever creating a new account. You may consider other means to assure the proper credentials are used for a login (txt the person's phone with the validation code, offer questions and answers, etc.)



          • 2. Re: Stopping Account Duplication
            Stephen Huston

            Because account names must be unique in FM, running a script to create an account when that account name already exits will not create a duplicate account, but will generate an error.


            Beverly's suggestion about testing with a Find and allowing an email to the valid email account holder sound like pretty standard components of such systems where new users can register themselves.


            In fact, sending credentials to the entered email is better than just creating it and letting the  user right in. They might be entering a dummy email that doesn't exist, so you still want them to have valid access to the email they entered or not let them in.