Right now the site I am working on has a restrict access set up for two levels, but the way they set up their registration, once someone registers, they can login to the member side without first being activated in the database. I'd like to be able to adjust the restriction kind of like a where clause, where activation= 1 or something to that effect. Is this possible or does anyone have any advice or help for me? Thanks.
mgn2683
0
Junior Poster in Training
Recommended Answers
Jump to PostWhen the user registers, set the value for activation column as 0 (for that user) in the user table. When the user activates, update activation column to 1 for that user. Then, when the user tries to log in, while checking for username and password, also check if activation=1. If …
Jump to PostCan you be more specific ? If you post your code and the database structure, it will be easier for us to help you !
All 6 Replies
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
unabomber1
0
Newbie Poster
mgn2683
0
Junior Poster in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
mgn2683
0
Junior Poster in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.