-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from rsnyman/registration-page
Authentication and Authorisation
- Loading branch information
Showing
82 changed files
with
9,156 additions
and
5,239 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
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 |
---|---|---|
@@ -1,5 +1,29 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
from pathlib import Path | ||
|
||
from ibutsu_server import get_app | ||
|
||
SSL_CERT = Path("../certs/dev.ibutsu.org+2.pem") | ||
SSL_KEY = Path("../certs/dev.ibutsu.org+2-key.pem") | ||
|
||
|
||
if __name__ == "__main__": | ||
get_app().run(port=8080, debug=True) | ||
kwargs = {} | ||
if "--ssl" in sys.argv: | ||
if not SSL_CERT.exists() or not SSL_CERT.exists(): | ||
print( | ||
"SSL certificate and/or key files not found. Please download and install mkcert " | ||
"and run the following command to generate these files:" | ||
) | ||
print("") | ||
print(" mkcert dev.ibutsu.org devapi.ibutsu.org localhost") | ||
print("") | ||
print( | ||
"Then place these two files in a `certs` directory in the top level directory of " | ||
"the project (the same directory containing `backend` and `frontend`)." | ||
) | ||
sys.exit(1) | ||
else: | ||
kwargs["ssl_context"] = (SSL_CERT, SSL_KEY) | ||
get_app().run(port=8080, debug=True, **kwargs) |
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,3 +1,5 @@ | ||
from flask_bcrypt import Bcrypt | ||
|
||
bcrypt = Bcrypt() | ||
|
||
__all__ = ["bcrypt"] |
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
Oops, something went wrong.