You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/auth
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>
3 years ago
..
totp Implement core logic for TOTP support (#3525) 3 years ago
api_key.ex Implement Stats API feature gate (#3411) 3 years ago
api_key_admin.ex Remove IO.inspect 6 years ago
auth.ex Improve and simplify email verification codes generation (#3407) 3 years ago
email_activation_code.ex Improve and simplify email verification codes generation (#3407) 3 years ago
email_verification.ex Improve and simplify email verification codes generation (#3407) 3 years ago
grace_period.ex Manually lock outgrown enterprise accounts (#2197) 4 years ago
invitation.ex Implement limits for team members (#3305) 3 years ago
password.ex Initial commit 7 years ago
token.ex Bookmarkable shared links (#752) 6 years ago
totp.ex Implement core logic for TOTP support (#3525) 3 years ago
user.ex Implement core logic for TOTP support (#3525) 3 years ago
user_admin.ex Trigger email reverification on change (#3388) 3 years ago