analytics/config
Adrian Gruntkowski 65cc8980e0
Implement core logic for TOTP support (#3525)
* Add `nimble_totp`, `cloak` and `cloak_ecto` to project dependencies

* Setup Cloak-based secrets vault and create a dedicated Ecto type

* Add `totp_enabled|secret|last_used_at` fields to `User` schema

* Implement schema and stateless logic for TOTP recovery codes

* Implement core logic of TOTP auth

* Fix typos and improve style of doc comments

Co-authored-by: hq1 <hq@mtod.org>

* Fix moduledoc alignment

* Use more compact conditional expression

Co-authored-by: hq1 <hq@mtod.org>

* Disambiguate `I` as `7` when generating recovery codes (h/t @hq1)

* Fix a typo in runtime config error message

---------

Co-authored-by: hq1 <hq@mtod.org>
2023-11-20 14:04:48 +01:00
..
.env.dev Implement core logic for TOTP support (#3525) 2023-11-20 14:04:48 +01:00
.env.test Implement core logic for TOTP support (#3525) 2023-11-20 14:04:48 +01:00
config.exs Add small build option (#3536) 2023-11-20 12:52:20 +01:00
dev.exs Enable JSON log formatting (#3512) 2023-11-13 14:53:11 +01:00
prod.exs New config (#595) 2021-01-13 15:41:16 +02:00
runtime.exs Implement core logic for TOTP support (#3525) 2023-11-20 14:04:48 +01:00
small_test.exs Add small build option (#3536) 2023-11-20 12:52:20 +01:00
small.exs Add small build option (#3536) 2023-11-20 12:52:20 +01:00
test.exs Upgrade Erlang/Elixir stack (#3454) 2023-10-24 10:33:48 +02:00