Duplicate email addresses
My registration page has suddenly started accepting duplicate email addresses.
The frustrating part is that it is random.
Code attached
My registration page has suddenly started accepting duplicate email addresses.
The frustrating part is that it is random.
Code attached
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
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
the key value is set to:
<?php echo ((isset($_SESSION["SecurityAssist_id"]))?$_SESSION["SecurityAssist_id"]:"0"); ?>
change it to:
0
Thanks, I'm curious as to what this will do that the original SB setting does not.
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.
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.
on a registration page, you would want to leave the key value set to 0 permanently.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.