Skip to content

Commit

Permalink
Add image and other fix (#58)
Browse files Browse the repository at this point in the history
* Fix add user functionality

* Set wifi credentials in settings

* Fix pylint

* Add image and some fixes
  • Loading branch information
leechwort committed Feb 5, 2024
1 parent 5896862 commit ba73390
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 7 deletions.
4 changes: 3 additions & 1 deletion app/config_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"SLACK_TOKEN": "xoxb-this-is-not-areal-slack-token"
}
},
"READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/home/artsin/Dev/prismo-reader/src/flasher.sh"
"READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/home/artsin/Dev/prismo-reader/src/flasher.sh",
"WIFI_SSID": "yourSSID",
"WIFI_PASSWORD": "yourWifiPassword"
}
}
24 changes: 24 additions & 0 deletions app/config_docker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"DEBUG": true,
"TESTING": true,
"SECRET_KEY": "secret_key",
"USE_X_SENDFILE": false,
"APPLICATION_ROOT": "/",
"SESSION_COOKIE_NAME": "session",
"SESSION_COOKIE_HTTPONLY": true,
"SESSION_COOKIE_SECURE": false,
"SESSION_REFRESH_EACH_REQUEST": true,
"TRAP_HTTP_EXCEPTIONS": false,
"EXPLAIN_TEMPLATE_LOADING": false,
"PREFERRED_URL_SCHEME": "http",
"MAX_COOKIE_SIZE": 4093,
"DATABASE_URI": "file:./external/database.db",
"PRISMO": {
"NOTIFIER": {
"CURRENT_NOTIFIER": "SLACK",
"SLACK_CHANNEL": "#prismo-debug",
"SLACK_TOKEN": "xoxb-THIS-ISNOTAREAL-SLACKTOKEN"
},
"READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/app/external/firmware/src/flasher.sh"
}
}
91 changes: 91 additions & 0 deletions app/static/prismo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/templates/auth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
</head>
<body>
<div class="login-container">
<h2>Login</h2>
<img class="mb-4" src="/static/prismo.svg" style="max-width: 100px; height: auto;">
<h1 class="h3 mb-3 fw-normal">Login to PRISMO</h1>
<form id="loginForm" class="login-form" action="#" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
Expand Down
6 changes: 6 additions & 0 deletions docs/slack_plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Slack Integration for PRISMO Access System
===========================================

PRISMO has an integration for access system

<a href="https://slack.com/oauth/v2/authorize?client_id=10631168368.6280904522421&scope=channels:read,chat:write&user_scope="><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcSet="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x" /></a>
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Flask~=2.3.2
pyyaml~=6.0
Flask
pyyaml
requests
slack_sdk
Werkzeug==2.3.8
Werkzeug
flask-sock
flask-login
schedule
pylint
pycodestyle
gunicorn==20.0.4
gunicorn
argon2-cffi
pyee~=11.1.0
pyee
slack-bolt
# Used by reader flasher script
intelhex
Expand Down

0 comments on commit ba73390

Please sign in to comment.