Compare commits
2 commits
4c682087a1
...
1ad46cbdc4
Author | SHA1 | Date | |
---|---|---|---|
1ad46cbdc4 | |||
bdc3a5c716 |
2 changed files with 5 additions and 2 deletions
|
@ -5,4 +5,7 @@
|
|||
```sh
|
||||
$ docker-compose up -d --build --remove-orphans ; docker-compose logs -f --timestamps
|
||||
```
|
||||
4. Seed db
|
||||
4. Initialize db schema using:
|
||||
```sh
|
||||
$ docker-compose exec forest python manage.py create_db
|
||||
```
|
||||
|
|
|
@ -145,7 +145,7 @@ def register():
|
|||
page = { 'title': 'Register' }
|
||||
form = RegistrationForm()
|
||||
if form.validate_on_submit():
|
||||
user = User(email=form.email.data, password=form.password.data, wallet=current_app.config['REGISTER_BONUS'])
|
||||
user = User(email=form.email.data, password=form.password.data)
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
token = user.generate_confirmation_token()
|
||||
|
|
Loading…
Reference in a new issue