Commit Graph

62 Commits

Author SHA1 Message Date
74c6661f0e updated Flask-Security-Too to most recent version 2022-09-16 21:53:10 +02:00
a88da152c1 removed KEY_FILE option (no longer used) 2022-09-12 22:23:56 +02:00
118f492881 use config file instead of program arguments, added config option for port 2022-09-12 22:22:49 +02:00
19d330b6d8 added log output 2022-09-12 22:21:56 +02:00
d53334efd4 fixed formatting 2022-09-12 22:21:28 +02:00
7c29f847bc fixed formatting 2022-09-12 22:21:21 +02:00
3a6ea5926b fixed formatting 2022-09-12 22:20:40 +02:00
5fb652c1d2 fixed formatting 2022-09-12 22:20:06 +02:00
f66283c328 fixed incorrect indentation 2022-02-04 22:45:44 +01:00
f0be983a5a make setting APPLICATION_SETTINGS file via environment variable optional 2022-02-04 22:41:55 +01:00
e8c1effd15 simplified super admin creation 2022-02-04 22:40:56 +01:00
4470d2fb82 use logger from flask 2022-02-04 22:40:14 +01:00
856a72b0cc added security salt in default configuration 2022-02-04 22:38:26 +01:00
a77dcd1878 simplified app configuration process 2022-02-04 22:13:15 +01:00
fa7c878cab reformatting 2022-02-04 21:28:37 +01:00
47f378fe6e added tests for DoorHandle class 2022-02-02 21:39:52 +01:00
33779e31b4 generalized ldap authentication 2022-02-01 23:03:06 +01:00
e0bbe02bc1 reformatting 2022-01-31 23:06:49 +01:00
3bbf60b42f tests for deleting and deactivating tokens 2022-01-31 22:27:38 +01:00
8d02e669f8 changed error message 2022-01-31 08:03:47 +01:00
3caf17c861 removed use of session cookie for token creation and modification 2022-01-30 23:08:18 +01:00
4b3aed25d2 moved models to auth module 2022-01-30 21:56:11 +01:00
2879a69445 make database and security objects global so we can access them in routes 2022-01-29 23:48:58 +01:00
b64b0c7bb6 access config from current_app object 2022-01-27 23:57:06 +01:00
b3c585bd27 updated routes for blueprint based app 2022-01-27 23:56:48 +01:00
a104a3d00f attach door object to flask application and use application's logger 2022-01-27 23:46:45 +01:00
ff9d21bcd5 moved creation of initial admin user to separate function 2022-01-27 23:45:17 +01:00
38164aca4b started refactoring:
- use blueprint
- read configuration from file (default_app_config.py) and additional file specified by APPLICATION_SETTINGS environment variable
2022-01-25 21:42:35 +01:00
03e7425b2a newer versions of wtforms use html5 by default 2022-01-23 12:33:57 +01:00
8e868f1674 display time since unregistered token was read 2021-08-30 21:15:32 +02:00
8a9a667429 adjusted layout 2021-08-30 21:03:30 +02:00
8bc0a642a3 clarified time zone 2021-08-30 20:43:49 +02:00
7cf4e3ce36 added guide for token registration 2021-08-24 18:48:54 +02:00
79b9b69ef8 encode string 2021-08-23 21:10:43 +02:00
4307d54505 check Keyholder status of users 2021-08-23 21:06:18 +02:00
14c783b2c1 pass on username to nfc socket when opening and closing door 2021-08-23 21:05:42 +02:00
2ccec6fe32 fixed typo causing door status not being displayed correctly 2021-08-23 20:31:18 +02:00
75ce8c46b8 nicer layout for token log 2021-04-17 15:50:46 +02:00
cffdb1f797 users created through the web interface are local users by default 2021-04-17 14:34:55 +02:00
734bed2092 prevent password changing for ldap users (they get redirected to the ldap self service instead) 2021-04-17 14:26:04 +02:00
f48f78997c added option to view the NFC logfile as super admin 2021-04-10 17:25:27 +02:00
8339294277 added option to read flask SECRET_KEY and SECURITY_PASSWORD_SALT from file 2021-04-10 13:46:56 +02:00
db8ee556df added promote/demote buttons 2021-04-08 20:56:54 +02:00
be0ee36ba9 reformatting token registration 2021-04-08 20:56:31 +02:00
7205928406 added iR logo, moved door open/close links to buttons on index.html 2021-04-08 20:55:27 +02:00
c215f367f5 clarified user vs admin terminology 2021-04-08 20:53:41 +02:00
2cb93d1d3b Distinguish between normal users and admin users. Normal user can only lock and unlock the door. Admin users can register new tokens.
Also added option to grant and revoke admin permissions for super-Admins.
2021-04-07 16:15:39 +02:00
7684268002 added bootstrap for nicer layout 2021-04-07 11:29:50 +02:00
ccce39d1a0 restructured LDAP authorization procedure 2021-04-06 22:39:21 +02:00
a71f68ade3 worked on ldap validation 2021-04-06 17:53:41 +02:00