#3 ✓resolved
davesag (at gmail)

User registration

Reported by davesag (at gmail) | September 9th, 2010 @ 09:45 PM | in v1.0

Add route

/register that displays a form with post action to /registration

Form fields
email, password

If a user with that email exists then
1) return to /register with an error message
2) email the user with a note that someone, at IP x at date.time tried to register a new user with their email address.

Else
Create a user in the database with the supplied details
Email the user with a unique registration confirmation link
Present a page that asks the user to check their mail.

This will also involve adding a "verified" flag to the user model that needs to be set when the user clicks their verification link.

I'd welcome best practice examples of how to do this.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Frank is intended to be a very simple but feature complete web-app built on top of Sinatra that provides simple user login, password reminder, and user email verification with support for simple roles. It is intended to be used by other developers as both a well documented example of Sinatra in use, and a starting point for others wishing to implement simple web apps very quickly.

Shared Ticket Bins

People watching this ticket