Changeset 76ebb1b in OpenWorkouts-current for ow/models


Ignore:
Timestamp:
Feb 18, 2019, 12:54:45 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
4af38e8
Parents:
d6da99e
Message:

(#29) Add user verification by email on signup.

From now on, when a new user signs up, we set the account into an "unverified"
state. In order to complete the signup procedure, the user has to click on a
link we send by email to the email address provided on signup.

IMPORTANT: A new dependency has been added, pyramid_mailer, so remember to
install it in any existing openworkouts environment (this is done automatically
if you use the ./bin/start script):

pip install pyramid_mailer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/models/user.py

    rd6da99e r76ebb1b  
    3939        self.__password = None
    4040        self.last_workout_id = 0
     41        # has this user verified his account?
     42        self.verified = False
     43        self.verification_token = None
    4144        super(User, self).__init__()
    4245
Note: See TracChangeset for help on using the changeset viewer.