close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding manual authentication element to login page

Thread began 6/24/2013 6:44 pm by doug425125 | Last modified 6/27/2013 12:10 am by doug425125 | 478 views | 10 replies |

doug425125

Adding manual authentication element to login page

Hi Jason

I have created a simple registration using the simple registration preset in DataBridge/Security Assist.
The site is being designed for distributors of a product, so I don't want to have automatic registration and
login access or through automatic email verification as the double opt in does. I have set up an email to send out to an admin with the contact info and other details from the registration form. They need to discuss and approve the access to the site with that potential user, so I would want to simply change the UserEmailVerified value manually in the user table that was created to have control over the process.
Right now the User Authentication is set to User ID using the email address and password, so how would I add an element that would only allow them in after I had changed the '0' to a '1' in the UserEmailVerified column for example.
Perhaps UserEmailVerified is not the best way to go, but it is available on the table as a mechanism for this.

Thanks for any help here..
Doug

Sign in to reply to this post

Jason ByrnesWebAssist

The Basic concept of the double opt in system is what you are after, with the only difference that the email does not go to the user who registers, but goers to the site admin.

or you could not send the verification link at all, and instead update that column value manually in the database.

How that column gets changed (By a link set to the user or manually by the admin) is the only difference to the double opt in system.

Sign in to reply to this post

doug425125

Hi Jason.. OK I've followed the tutorial word for word (several times) .. so I'm not sure what I've done wrong. The registration works well.. it sends the confirmation to an admin email address for verification.. I click on the verify your email link, and it updates the database to a value of "1" for the 'emailVerified' column.
I can then click on the access restricted content, on the refreshed page, and it gets me to the login one more time.. after a successful login, I can click on the link and get into the site. The problem is every time I quit my browser, and login again it brings me to the user update.php page.

I have set the rules manager to use the VerifiedUser for the rule on the main index page.. help please..

Thanks,
Doug

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

doug425125

Thanks Jason..

Sign in to reply to this post

Jason ByrnesWebAssist

on the index page, you have access restriction that redirects to the user update page:

<?php
if (!WA_Auth_RulePasses("VerifiedUser")){
WA_Auth_RestrictAccess("userupdate.php");
}
?>

set that to redirect to the login success page instead.

Sign in to reply to this post

doug425125

Thanks for the very quick response Jason..

Excellent support,
Doug

Sign in to reply to this post

Jason ByrnesWebAssist

Originally Said By: doug425125
  Thanks for the very quick response Jason..

Excellent support,
Doug  
Sign in to reply to this post

doug425125

Thanks again Jason..

Sign in to reply to this post

Jason ByrnesWebAssist

the verified user rule sets the page to only allow access to logged in user that are verified.

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