close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

SecurityAsssist - Create Security Pages - Validate Email

Thread began 9/13/2011 10:33 am by dan361748 | Last modified 9/15/2011 9:28 am by Jason Byrnes | 2810 views | 10 replies |

dan361748

SecurityAsssist - Create Security Pages - Validate Email

Hi - I have used the 'Create Security Pages' function to create my login, logout, update etc. pages.

In my registration.php I notice this line:

<?php
if (ValidatedField('registration','registration')) {
if ((strpos((",".ValidatedField("registration","registration").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
The value you entered for the Email field is already contained in our records.
<?php //WAFV_Conditional registration.php registration(2:)
}
}
}?>

However, I can't find any behaviour in the page that actually checks for the duplicate address and returns the validation.

Is there a place/document that Web Assist has to intruct on how to complete this feature? Is there a similar doc that shows how to create the validation email a user is sent when they create an account?

Many thanks

Sign in to reply to this post

dan361748

I also see that the Create Security Pages wizard also put this in the bottom of the registration.php page:

var Registration_group_Email_Spry = new Spry.Widget.ValidationTextField("Registration_group_Email_Spry", "email", { minChars:6, maxChars:500, is_unique:true , validateOn:["blur"]});

I am wondering what the line is_unique:true is for.

In the past, I've done server-side validations to return the totalrows based on the lookup of my user table, but this is the first time I have tried SA Create Security Pages. Does this wizard include some sort of Spry lookup of duplicate emails?

Either way, my form will post duplicate emails right now so I'm hoping someone can help.

Dan

Sign in to reply to this post

Jason ByrnesWebAssist

On the server behaviors panel, there is a server behavior name "Server Validation" One of the Available validation types is Unique Database Value. This Server validation type is used to check that the email entered is unique email address.

if the Unique DB Value validation type is not working, send a copy of your page so I can see the code. the is_unique:true code in the spry validation is really just a place holder as a reminder to add the Unique DB Value server validation type, it will be ignored by the spry code.

Creating email to send the user to have them validate their email address is a technique called double opt-in. There is no tutorial for this, but the following thread has an explanation of how to create it:
showthread.php?t=14143

Sign in to reply to this post

dan361748

Thanks Jason - just so I'm clear - should the Create Pages wizard have put in the Server Validation behaviour automatically or is this something to be added afterwards?

Sign in to reply to this post

Jason ByrnesWebAssist

That Depends on the settings you use in the wizard.

On the Mange Pages tab, click the edit icon next to Configure Field Settings. If you check the option "Unique Column For registration and User Update Pages", the Unique Database value validation type will be added for that column.

Sign in to reply to this post

dan361748

No matter what I do I'm unable to get the 'check unique' included by the wizard.

I have made sure that the Email field is unique when I configure the manage pages portion.

Attached is the output of the registration page from the wizard.

Attached Files
registration_test2.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

what version of security assist do you have installed?

Make sure you have installed the 2.0.3 version that is available from your download center, if you have a previous version installed, make sure to uninstall it from the extension manager before installing this newer one.

Sign in to reply to this post

dan361748

Hi Jason - I have 2.0.3 installed. I did uninstall the previous version first.

Perhaps this issue is related to my ticket here:

showthread.php?t=22752&goto=newpost

I will follow up with that one first.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, the issues in that ticket could definitely be the culprit.

Sign in to reply to this post

dan361748

Hi Jason - as per my other ticket, I don't get (Prior Version) anymore but the registration.php page still does not check against existing emails, even though I selected that option when setting up the wizard. I've attached the new page exactly as it was generated by the wizard.

Attached Files
registration.php.zip
Sign in to reply to this post
loading

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...