close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Duplicate email addresses

Thread began 7/26/2013 6:38 pm by Col Foster | Last modified 7/30/2013 4:56 pm by Jason Byrnes | 448 views | 7 replies |

Col Foster

Duplicate email addresses

My registration page has suddenly started accepting duplicate email addresses.
The frustrating part is that it is random.

Code attached

Sign in to reply to this post

Jason ByrnesWebAssist

Open the server behaviors panel and double click the Server Validation server behavior.

edit the Unique Database value validation and set the Key Value setting to 0

Sign in to reply to this post

Col Foster

Which value Jason, can you be more specific as it looks to be already set?

<?php echo ((isset($_SESSION["SecurityAssist_id"]))?$_SESSION["SecurityAssist_id"]:"0"); ?>

".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true

Sign in to reply to this post

Jason ByrnesWebAssist

the key value is set to:
<?php echo ((isset($_SESSION["SecurityAssist_id"]))?$_SESSION["SecurityAssist_id"]:"0"); ?>

change it to:
0

Sign in to reply to this post

Col Foster

Thanks, I'm curious as to what this will do that the original SB setting does not.

Sign in to reply to this post

Jason ByrnesWebAssist

when a user logs in, their ID is stored in a session variable.


on an update page, you would want the Unique Database value to accept the email address for the logged in user but not any other email address that is already in the database.

by setting the Key Value to the user session, if a user is logged in, it will look up the logged in email and accept that.


in your case, this is a registration page, not an update page, so you dont want to allow the logged in users email.

Sign in to reply to this post

Col Foster

So, would this be good practice for testing purposes or would it be ok to leave the mod in place permanently.

Thanks for the explanation.

Sign in to reply to this post

Jason ByrnesWebAssist

on a registration page, you would want to leave the key value set to 0 permanently.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...