Commit Graph

20 Commits

Author SHA1 Message Date
Henry 50e4ebbaca aliases: add overview and revoke handlers 2021-03-16 08:49:47 +01:00
Henry 117cad48a7 rename admindb to roomdb 2021-03-10 16:44:46 +01:00
Henry 98468e93a5 Invite endpoints
* Add revoke and created templates
* Render invite accept with domain
* Flesh out accept page
2021-03-10 09:33:55 +01:00
Henry 9f1fef1916 more consistent type names for handlers 2021-03-10 09:33:27 +01:00
Henry fd5312b04a disambiguate redirect url 2021-03-10 09:33:27 +01:00
Henry 97554069b5 re-use pagination code 2021-03-10 09:33:27 +01:00
Henry c7bcef4339 invite form testing 2021-03-10 09:33:15 +01:00
Henry e5a07fd8bc (Pinned)Notices
Notices are pages that admins can fill with their content to describe
and customize the room.

Pinned notices are common notices that each room has. Like a description
and privacy policy.

* update models
* simple crud test for basic notices
* edit and save notices as admin
2021-02-25 10:07:44 +01:00
Andre Staltz ad5356d58b
replace panics with returning formatted errors 2021-02-24 18:02:52 +02:00
Andre Staltz 743cc074d7
implement pagination in allow-list overview 2021-02-24 15:54:36 +02:00
Andre Staltz 0aa8265cd4
prettify the allow-list main page 2021-02-23 12:23:16 +02:00
Henry f1f4e9dcb9 add CSRF protection
updates #14
2021-02-17 12:22:05 +01:00
Henry 60ca1bfb37 fix redirect 2021-02-16 12:33:25 +01:00
Henry 412545ac50 small fixes
* news/overview was still using PostID
* fix singular in testing {{ i18npl ... }}
2021-02-16 10:33:28 +01:00
Henry b82ff3051a add test for remove 2021-02-15 18:54:00 +01:00
Henry 29d884b4fc allow-list: add test for add 2021-02-15 18:26:20 +01:00
Henry a528002361 cleanup internal sqlite error 2021-02-15 17:21:06 +01:00
Henry 9dcab464cb small cleanup 2021-02-15 15:08:34 +01:00
Henry 58f795d5e6 route with query params instead of named routers
Since we don't use the web/router through and through to setup handler
functions, accessing the named route varaibles doesn't work inside those
handler functions.

Since I dont find it acceptable to juggle two concepts here I switch the
url generation to classical get query paramters (route?varA=xyz&varB=2).
2021-02-15 14:43:55 +01:00
Henry 6416d1c215 allow list interface 2021-02-15 14:43:32 +01:00