Compare commits

...

2 commits

Author SHA1 Message Date
1ad46cbdc4 update readme with create_db 2024-04-01 19:36:22 +03:00
bdc3a5c716 remove legacy field 2024-04-01 19:32:49 +03:00
2 changed files with 5 additions and 2 deletions

View file

@ -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
```

View file

@ -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()