-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
04d9f02
commit e6abe75
Showing
4 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from flask import Flask, request, current_app | ||
from flask_cors import CORS | ||
from flask_sqlalchemy import SQLAlchemy | ||
from passlib.hash import pbkdf2_sha256 as sha256 | ||
import os | ||
from config import Config | ||
|
||
|
@@ -71,7 +72,7 @@ def build_sample_db(app): | |
first_name='Admin', | ||
last_name='User', | ||
email='admin', | ||
password='admin', | ||
password=sha256.hash('admin'), | ||
phone='254798745678', | ||
role_id=super_user_role.id, | ||
co_op_id=co_op_1.id | ||
|
@@ -80,7 +81,7 @@ def build_sample_db(app): | |
first_name='Test', | ||
last_name='User', | ||
email='[email protected]', | ||
password='12345', | ||
password=sha256.hash('12345'), | ||
phone='254987654321', | ||
role_id=user_role.id, | ||
co_op_id=co_op_1.id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ Flask-Admin | |
Flask-SQLAlchemy | ||
Flask-CORS | ||
africastalking | ||
flask-jwt-extended | ||
passlib |