Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

User registration confirmation Options
itamar82
Posted: Monday, October 18, 2010 3:55:14 PM
Rank: Member
Groups: Member

Joined: 8/24/2008
Posts: 26
Points: 78
How should I go about implementing a user registration confirmation workflow? What this means that when a user registers for the first time, an email is sent to them with a link to a page where their account will be confirmed. Attempts to log in as the user prior to confirmation will fail.

The way i was thinking of doing this is as follows:
Add a 'confirmed' column to the users table as a bit.
Create a user confirmation database table mapping between the user Id to a random generated confirmation code. (guid?)
When a new user is registered, create the mapping in the table and set the confirmed column to false.
Send an email with the link containing the confirmation code and user id to the user. When the user opens that link the service will first check if that user is already confirmed and if not, will check to see if the confirmation code matches the one in the database. If yes, delete the mapping and set the confirmed column of the user to true. Otherwise send the user to a page notifying them that confirmation failed.

What else should I keep on mind while doing this? This will be my first venture into modifying the core. Any advise will be appreciated.
goolz
Posted: Tuesday, October 19, 2010 12:37:04 AM
Rank: Advanced Member
Groups: Member

Joined: 6/18/2007
Posts: 39
Points: 117
Hi itamar
Recently I developed an advance user control module, that has these features :
- Invitation Link
- Email Validation
- Final approve
- Get more information (Tel , fax , address , ...)
- User Invitation

I'll put it on CuyahogaContrib soon. (I'm very busy right now)
modark
Posted: Wednesday, October 20, 2010 3:07:13 PM

Rank: Member
Groups: Member

Joined: 11/12/2009
Posts: 23
Points: 69
@itamar82

I also created a custom user module which handles all these things.

There is already a column named "IsActive", i use this one for "confermation".
I also added a column "ActivationKey", which is a random of 10 chars, to the user table. So no need to create a seperate table.



-=-=-=-=-=-=-
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.