You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe you've seen this before, but I'm getting the following error when setting up a user:
Python 3.4.1 (default, May 19 2014, 13:10:29)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
python
Traceback (most recent call last):
File "", line 1, in
NameError: name 'python' is not defined
from app import auth
admin = auth.User(username='admin', email=
... '', active=True, admin=True)
admin.set_password(
... 'admin')
Traceback (most recent call last):
File "", line 2, in
File "/Users/dross/Projects/timer/env/lib/python3.4/site-packages/flask_peewee/auth.py", line 22, in set_password
self.password = make_password(password)
File "/Users/dross/Projects/timer/env/lib/python3.4/site-packages/flask_peewee/utils.py", line 133, in make_password
salt = get_hexdigest(str(random.random()), str(random.random()))[:5]
File "/Users/dross/Projects/timer/env/lib/python3.4/site-packages/flask_peewee/utils.py", line 130, in get_hexdigest
return sha1(salt + raw_password).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
The text was updated successfully, but these errors were encountered:
Maybe you've seen this before, but I'm getting the following error when setting up a user:
Python 3.4.1 (default, May 19 2014, 13:10:29)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: