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

User Registration Solution Pack

Thread began 3/04/2010 10:22 pm by Gizza372666 | Last modified 4/05/2010 3:39 pm by Gizza372666 | 2915 views | 25 replies

Gizza372666

user registration

I keep finding problems.
no matter if the user has confirm his/her email they are still able to login.
I need to only give access to people who have confirmed their email.
when they register, they receive an email which when they select the email will change the UserEmailVerified value to 1.
so far so good
but my problem now is that at the moment anyone can login
Can you please tell me the location and the code I need to add in order to disallow access to registers who haven't confirmed their email.

Pseudocode:
if UserEmailVerified=1 && username = username && password = password
then
access allow
Location:users_Profile.php

else

access not allow
echo "please check your emails";
Location:users_LogIn.php

I have removed a small part of the code from the loging page because it will not allow users to receive the confirmation email (the same problem I had on my first post):
-------------------------------------------------
&& (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))
-------------------------------------------------
here is my login page which works fine apart the access control problem:
users_LogIn.txt
looking forward hearing from you.
I think that after this I will manage to complete my project.
Thanks in advance.

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