1 | *** tools.py 2017-11-13 14:29:18.255113996 +0100
|
---|
2 | --- tools.py_fix 2017-11-13 14:30:17.505473997 +0100
|
---|
3 | ***************
|
---|
4 | *** 68,75 ****
|
---|
5 | if extra_salt:
|
---|
6 | raw_pass = u"%s:%s" % (extra_salt, raw_pass)
|
---|
7 |
|
---|
8 | ! return six.text_type(
|
---|
9 | ! bcrypt.hashpw(raw_pass.encode('utf-8'), bcrypt.gensalt()))
|
---|
10 |
|
---|
11 |
|
---|
12 | def fake_login_attempt():
|
---|
13 | --- 68,74 ----
|
---|
14 | if extra_salt:
|
---|
15 | raw_pass = u"%s:%s" % (extra_salt, raw_pass)
|
---|
16 |
|
---|
17 | ! return bcrypt.hashpw(raw_pass.encode('utf-8'), bcrypt.gensalt())
|
---|
18 |
|
---|
19 |
|
---|
20 | def fake_login_attempt(): |
---|