Commit Graph

75 Commits

Author SHA1 Message Date
c941d383c1 added test for editing tokens 2022-01-31 08:03:31 +01:00
a621b6bb78 added dummy token log data for testing 2022-01-30 23:09:20 +01:00
ec1e843f57 added tests for token log and registration 2022-01-30 23:08:51 +01:00
3caf17c861 removed use of session cookie for token creation and modification 2022-01-30 23:08:18 +01:00
f1eaf8af4e added configuration data for testing 2022-01-30 22:08:29 +01:00
4b3aed25d2 moved models to auth module 2022-01-30 21:56:11 +01:00
080ea0f3b0 added tests for modifying user permissions 2022-01-30 21:54:35 +01:00
ee6ee0e111 streamlined tests and added test for trying to access the door without authentication 2022-01-30 18:49:09 +01:00
2879a69445 make database and security objects global so we can access them in routes 2022-01-29 23:48:58 +01:00
97957e389c added tests for admin management operations, streamlined testing a bit 2022-01-29 23:46:20 +01:00
8f8bdb8cc3 added instructions for running tests 2022-01-29 23:45:31 +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
42345273dd removed requirements.txt now that we have setup.cfg 2022-01-27 23:49:32 +01:00
ace5868571 added test configuration fixtures 2022-01-27 23:48:31 +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
ba9379449a added tests for opening and closing the door via button 2022-01-25 19:38:19 +01:00
bb022fd1ce added login tests (headless and with selenium) 2022-01-25 00:09:14 +01:00
e0a22f770d added testing dependencies 2022-01-25 00:08:25 +01:00
03e7425b2a newer versions of wtforms use html5 by default 2022-01-23 12:33:57 +01:00
b4f9e4525b use setup.cfg based package setup script 2022-01-23 12:33:20 +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
5afcf1f10a added default argument for super admin file 2021-08-23 20:30:50 +02:00
75ce8c46b8 nicer layout for token log 2021-04-17 15:50:46 +02:00
9a0ae93a7b added missing * 2021-04-17 14:50:07 +02:00
9d53f80cbf Makefile now longer necessary with setuptools 2021-04-17 14:44:03 +02:00
d406d254b4 added security templates 2021-04-17 14:42:00 +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
c02d5465ea update version 2021-04-10 14:18:44 +02:00
717fe0d83b added bootstrap files to MANIFEST.in 2021-04-10 14:13:52 +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
5facd44325 updated LDAP url 2021-04-06 22:40:02 +02:00
ccce39d1a0 restructured LDAP authorization procedure 2021-04-06 22:39:21 +02:00