Commit graph

62 commits

Author SHA1 Message Date
d02239816a admin can login 2022-03-30 02:16:06 +00:00
cb3a3fca69 typo 2022-03-30 02:11:04 +00:00
9b5a98e0c0 rework User methods 2022-03-30 01:51:58 +00:00
03d3a86668 basic permissions system 2022-03-29 23:36:23 +00:00
bb53bab0c0 rename "capability" -> "tag" 2022-03-29 20:22:03 +00:00
e11f96b0af dirty commit 2022-03-29 16:35:41 +00:00
fdce81c5a3 refactor get_user_by_name_if_editable 2022-03-29 16:12:55 +00:00
617ae92d72 deleting a device 2022-03-29 15:56:25 +00:00
0c8298871f several minor fixes 2022-03-29 15:56:25 +00:00
4ca92a11b2 remove ugly kwargs versions 2022-03-29 00:14:36 +00:00
186ac0eab3 User.create() methods 2022-03-29 00:01:28 +00:00
865e712ea5 POST /device route 2022-03-29 00:01:12 +00:00
6254daa51d check: user can login, "admin" can do everything 2022-03-28 22:17:31 +00:00
a465dba92e side effects 2022-03-28 22:07:12 +00:00
7dbd25b894 rollback tablename settings 2022-03-28 21:54:39 +00:00
499c97a28a Capability -> UserCapabilityType 2022-03-28 21:41:49 +00:00
5b623e885c table names 2022-03-28 21:26:47 +00:00
270de7f87c Settings.config_file_name 2022-03-28 21:00:16 +00:00
1b24861e48 Docstrings 2022-03-28 20:58:40 +00:00
77b40cb836 User.delete return value 2022-03-28 20:18:00 +00:00
ca955d1104 fix for crypt_context and load() 2022-03-28 02:23:00 +00:00
3d83ddb6cc Config.load_sync -> Config._ 2022-03-28 02:15:42 +00:00
12432286bf rename db_new -> db 2022-03-28 01:34:52 +00:00
b4a74aca5f remove old db 2022-03-28 01:34:15 +00:00
94fbab278c add models.User.from_db() 2022-03-26 01:49:47 +00:00
557bceed1f legacy 2022-03-25 23:56:57 +00:00
c47fa5a89b split db.schemas -> db.schemata package 2022-03-25 23:54:19 +00:00
02225cdf09 plan models + schemas 2022-03-25 23:03:56 +00:00
1ed3b587c7 quark 2022-03-25 15:50:45 +00:00
437bc570e4 Endpoint POST api/dn 2022-03-23 15:44:35 +00:00
ac6e506486 back population 2022-03-23 15:30:22 +00:00
814a19d864 nullables + Type hints 2022-03-23 15:00:35 +00:00
673c91bc33 User creation/deletion 2022-03-23 13:25:00 +00:00
f886f9e9dc add User.is_admin() 2022-03-23 13:23:33 +00:00
ae73c8ff70 add and remove capabilities 2022-03-23 00:41:45 +00:00
5dce05816f minor DB refactoring 2022-03-22 16:29:02 +00:00
e3acc9b7e0 User update 2022-03-20 13:14:12 +00:00
692bf0ef63 make User.authenticate an instance function 2022-03-20 04:00:14 +00:00
e49a993676 documentation & some minor refactoring 2022-03-20 03:45:40 +00:00
f9762d4a54 brevity 2022-03-20 01:37:27 +00:00
00bdf88b6e Connection.use() 2022-03-20 00:12:56 +00:00
21411694e8 give admin user "admin" capability 2022-03-20 00:12:37 +00:00
54c5e7ae8a less messy cap unification 2022-03-19 23:56:11 +00:00
1c1ea694d1 don't make everyone an admin :) 2022-03-19 19:24:43 +00:00
5eb9d4d113 move caps to "User" schema 2022-03-19 18:31:03 +00:00
b53aab012d double user creation fail 2022-03-19 18:06:17 +00:00
4959f1987c some renames 2022-03-19 02:38:32 +00:00
3cc29d4fd8 /user/auth and GET /user/current working 2022-03-19 00:38:57 +00:00
05679409a5 double code 2022-03-18 23:48:33 +00:00
b69bbe67bc db importing 2022-03-18 23:46:17 +00:00