Skip to content

Commit

Permalink
bump to v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeratax committed Jul 12, 2020
1 parent 77d46f0 commit 588dc1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ if you want to write your own registration page, you can take a look at the samp
the html page looks for the query paramater `token` and sets the token input field to it's value. this would allow you to directly share links with the token included, e.g.:
`https://homeserver.tld/register.html?token=DoubleWizardSki`

### troubleshooting

#### SQLAlchemy complains that a value isn't in a DateTime value

Before #17 introduced SQLAlchemy support the sqlite database incorrectly stored the expire dates, to fix this you have to manually run:
```sql
update tokens set ex_date=null where ex_date='None';
```
on your database once, or just delete your current database.

### similar projects

- [matrix-invite](https://gitlab.com/reivilibre/matrix-invite) live at https://librepush.net/matrix/registration/
Expand Down
2 changes: 1 addition & 1 deletion matrix_registration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from . import tokens
from . import config

__version__ = '0.6.0.dev2'
__version__ = '0.6.0'
name = 'matrix_registration'
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,22 @@ def find_version(*file_paths):
'static/images/*.png',
'static/images/*.ico']},
python_requires='~=3.6',

install_requires=[
"appdirs>=1.4.3",
"Flask>=1.0.2",
"Flask-SQLAlchemy>=2.4.1",
"flask-cors>=3.0.7",
"flask-httpauth>=3.2.4",
"flask-limiter>=1.0.1",
"psycopg2-binary>=2.8.4",
"python-dateutil>=2.8.1",
"PyYAML>=5.1",
"requests>=2.21.0",
"waitress>=1.2.1",
"WTForms>=2.1"
],
extras_require = {
'postgres': ["psycopg2-binary>=2.8.4"]
},
tests_require=[
"parameterized>=0.7.0",
"flake8>=3.7.7"
Expand Down

0 comments on commit 588dc1c

Please sign in to comment.