Commit Graph

52 Commits (master)

Author SHA1 Message Date
Simon Pirkelmann 8e868f1674 display time since unregistered token was read 2021-08-30 21:15:32 +02:00
Simon Pirkelmann 8a9a667429 adjusted layout 2021-08-30 21:03:30 +02:00
Simon Pirkelmann 8bc0a642a3 clarified time zone 2021-08-30 20:43:49 +02:00
Simon Pirkelmann 7cf4e3ce36 added guide for token registration 2021-08-24 18:48:54 +02:00
Simon Pirkelmann 79b9b69ef8 encode string 2021-08-23 21:10:43 +02:00
Simon Pirkelmann 4307d54505 check Keyholder status of users 2021-08-23 21:06:18 +02:00
Simon Pirkelmann 14c783b2c1 pass on username to nfc socket when opening and closing door 2021-08-23 21:05:42 +02:00
Simon Pirkelmann 2ccec6fe32 fixed typo causing door status not being displayed correctly 2021-08-23 20:31:18 +02:00
Simon Pirkelmann 5afcf1f10a added default argument for super admin file 2021-08-23 20:30:50 +02:00
Simon Pirkelmann 75ce8c46b8 nicer layout for token log 2021-04-17 15:50:46 +02:00
Simon Pirkelmann 9a0ae93a7b added missing * 2021-04-17 14:50:07 +02:00
Simon Pirkelmann 9d53f80cbf Makefile now longer necessary with setuptools 2021-04-17 14:44:03 +02:00
Simon Pirkelmann d406d254b4 added security templates 2021-04-17 14:42:00 +02:00
Simon Pirkelmann cffdb1f797 users created through the web interface are local users by default 2021-04-17 14:34:55 +02:00
Simon Pirkelmann 734bed2092 prevent password changing for ldap users (they get redirected to the ldap self service instead) 2021-04-17 14:26:04 +02:00
Simon Pirkelmann f48f78997c added option to view the NFC logfile as super admin 2021-04-10 17:25:27 +02:00
Simon Pirkelmann c02d5465ea update version 2021-04-10 14:18:44 +02:00
Simon Pirkelmann 717fe0d83b added bootstrap files to MANIFEST.in 2021-04-10 14:13:52 +02:00
Simon Pirkelmann 8339294277 added option to read flask SECRET_KEY and SECURITY_PASSWORD_SALT from file 2021-04-10 13:46:56 +02:00
Simon Pirkelmann db8ee556df added promote/demote buttons 2021-04-08 20:56:54 +02:00
Simon Pirkelmann be0ee36ba9 reformatting token registration 2021-04-08 20:56:31 +02:00
Simon Pirkelmann 7205928406 added iR logo, moved door open/close links to buttons on index.html 2021-04-08 20:55:27 +02:00
Simon Pirkelmann c215f367f5 clarified user vs admin terminology 2021-04-08 20:53:41 +02:00
Simon Pirkelmann 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
Simon Pirkelmann 7684268002 added bootstrap for nicer layout 2021-04-07 11:29:50 +02:00
Simon Pirkelmann 5facd44325 updated LDAP url 2021-04-06 22:40:02 +02:00
Simon Pirkelmann ccce39d1a0 restructured LDAP authorization procedure 2021-04-06 22:39:21 +02:00
Simon Pirkelmann a71f68ade3 worked on ldap validation 2021-04-06 17:53:41 +02:00
Simon Pirkelmann 312549ac15 added route for token backup 2021-04-06 17:53:14 +02:00
Simon Pirkelmann f021f7494f added link for token backup 2021-04-06 17:52:17 +02:00
Simon Pirkelmann 8cdf549c4c added ability to backup and restore admin users for super admins 2021-03-28 21:50:44 +02:00
Simon Pirkelmann e707f4bd87 added support for different roles (admins + super admins), super admins can create new admins 2021-03-27 22:58:31 +01:00
Simon Pirkelmann 4197446a00 improved admin user creation and added basic logging features 2021-03-27 16:41:51 +01:00
Simon Pirkelmann eb4c027f46 changed priority for authorization (Flask first, LDAP second) and cache LDAP credentials in memory on successful authentication 2021-03-22 23:42:29 +01:00
Simon Pirkelmann 2aa958aaa0 added ldap3 dependency to setup.py 2021-03-22 21:25:48 +01:00
Simon Pirkelmann 1e87406fdb added LDAP authorization 2021-03-22 21:22:51 +01:00
Simon Pirkelmann e79713e094 Added confirmation page for token deletion 2021-03-21 21:45:13 +01:00
Simon Pirkelmann c981161cd7 Added option to create admin users by passing file with username, email and initial password 2021-03-21 17:27:01 +01:00
Simon Pirkelmann bf239edf1d added connection to nfc socket for reloading token file and opening and closing the door from the web interface 2021-03-21 15:53:33 +01:00
Simon Pirkelmann a529126b40 configured repo to work with pip setup 2021-03-15 22:51:51 +01:00
Simon Pirkelmann e19f1b50c6 mail configuration 2021-03-14 23:04:52 +01:00
Simon Pirkelmann 253db849ff added template with navbar 2021-03-14 17:08:46 +01:00
Simon Pirkelmann daed27372b Merge branch 'master' of ssh://imaginaerraum.de:2201/Telos4/DoorAdmin
 Conflicts:
	app.py
	door_handle.py
	templates/register.html
2021-03-14 14:23:01 +01:00
Simon Pirkelmann 0b0d7f9a93 added command line argument parser
use MQTT to get last invalid token instead of reading it from the logfile
2021-03-14 14:18:59 +01:00
Simon Pirkelmann 4d405c66d6 use MQTT to get last invalid token 2021-03-13 18:54:32 +01:00
Simon Pirkelmann 28f95740af use regular re package 2021-03-13 18:33:00 +01:00
Simon Pirkelmann 39bea22251 added Makefile for creating releases 2021-03-13 17:42:52 +01:00
Simon Pirkelmann d0084e0de7 removed token and nfc log dev files 2021-03-13 16:16:14 +01:00
Simon Pirkelmann 55c4f6ea7f renamed door access class 2021-03-08 21:38:02 +01:00
Simon Pirkelmann 652a406461 added organization and improved layout 2021-03-08 21:31:25 +01:00