Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,9 @@ sf = Salesforce(username='surendra@sathkrutha.com',
|
|
| 7 |
import bcrypt
|
| 8 |
|
| 9 |
def hash_password(password):
|
|
|
|
| 10 |
return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
|
|
|
|
| 11 |
def verify_password(plain_password, hashed_password):
|
| 12 |
return bcrypt.checkpw(plain_password.encode('utf-8'), hashed_password.encode('utf-8'))
|
| 13 |
def signup(name, email, phone, password):
|
|
|
|
| 7 |
import bcrypt
|
| 8 |
|
| 9 |
def hash_password(password):
|
| 10 |
+
# This will generate a hash that may exceed 60 characters
|
| 11 |
return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
|
| 12 |
+
|
| 13 |
def verify_password(plain_password, hashed_password):
|
| 14 |
return bcrypt.checkpw(plain_password.encode('utf-8'), hashed_password.encode('utf-8'))
|
| 15 |
def signup(name, email, phone, password):
|