Commit Graph

21 Commits

Author SHA1 Message Date
forest 66dee4d87a breaking up after abusive relationship with logger 2021-08-16 02:07:36 +02:00
3wc 6bd02a660e Basic testing using flask-testing
This commit makes it possible to override settings during tests, by
switching capsulflask/__init__.py to a "create_app" pattern, and using
`dotenv_values` instead of `load_dotenv`.

The create_app() method returns a Flask app instance, to give
more control over when to initialise the app. This allows setting
environment variables in test files.

Then, use dotenv_values to override loaded .env variables with ones from
the environment, so that tests can set `POSTGRES_CONNECTION_PARAMETERS`
and `SPOKE_MODEL` (possibly others in future..).

Inital tests for the "landing" pages, and login / activation, are
included.
2021-08-16 02:07:34 +02:00
forest 74d77224f7 finishing touches and fixes on managed IPs database migration 16 2021-07-09 14:35:23 -05:00
forest 862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
forest e685c8a773 start working on managed IPs 2021-07-08 14:10:14 -05:00
forest bdabd61057 fix defaults for running locally and make email server not required. 2021-07-07 13:47:21 -05:00
forest eba3bd6a5a fixing bugs with email ignore case feature 2020-12-29 19:03:37 -06:00
forest ff38858c74 fixing login email case sensitivity issues 2020-12-29 18:42:38 -06:00
forest fd7dd7390f implement anti-csrf measures in all posted forms 2020-05-22 16:04:47 -05:00
forest 62a062fff2 fix bug when created query string is not present 2020-05-16 23:28:21 -05:00
forest 5c1a977a87 remove query string XSS from login token 2020-05-16 23:05:45 -05:00
j3s bae9c2311d Remove HTML part and 90 spaces from sent login email 2020-05-12 00:46:08 -05:00
forest 231d1ed7c0 create capsul and capsuls list page working 2020-05-11 15:13:20 -05:00
forest 18e6a1b141 starting to build console controller and views 2020-05-11 01:47:14 -05:00
forest 7932db90d5 added FAQ, Changelog, and Support static pages 2020-05-10 22:55:16 -05:00
forest 426fad7b10 first try at creating VirtualizationInterface 2020-05-10 18:59:30 -05:00
forest 7fe0d9a9c5 fine-tuning login 2020-05-10 13:51:54 -05:00
forest e6fcb847f0 validate email address 2020-05-09 23:45:20 -05:00
forest 3406ff3358 login is working 2020-05-09 23:32:13 -05:00
forest 64bca1fd97 it sends a magic link when you log in 2020-05-09 22:59:22 -05:00
forest 246ef00540 broken auth WIP 2020-05-09 20:36:14 -05:00