Commit Graph

2348 Commits (fd6177af5f597fc2738c2b4ffca6b1bd3741ddca)
 

Author SHA1 Message Date
Adrian Gruntkowski fd6177af5f Delete trust cookie when disabling 2FA 3 years ago
Adrian Gruntkowski 8d5b421e7d Fix waiting state under Chrome and Safari 3 years ago
Adrian Gruntkowski be6813467c Improve styling in dark mode 3 years ago
Adrian Gruntkowski 498e5e8637 Add ability to trust device and skip 2FA for 30 days 3 years ago
Adrian Gruntkowski e584795db5 Log failed 2FA code input attempts 3 years ago
Adrian Gruntkowski f1e96f0f9b Apply rate limiting to 2FA verification 3 years ago
Adrian Gruntkowski 9fd849dca4 Implement wait states for recovery code related actions properly 3 years ago
Adrian Gruntkowski 89dcf90218 Use button component in activate view 3 years ago
Adrian Gruntkowski a65e6ae6f4 Fix button in verify_2fa_input component 3 years ago
Adrian Gruntkowski e6f9157d54 Adjust modal button logic 3 years ago
Adrian Gruntkowski 235632c84b First pass on loading state for "generate new codes" 3 years ago
Adrian Gruntkowski 9490229d01 Extract modal to component and move 2FA components to dedicated module 3 years ago
Adrian Gruntkowski 51e9e802cd Add byline with a warning to disable 2FA modal 3 years ago
Adrian Gruntkowski 7cc7ac45f1 Improve flash message phrasing on generated recovery codes 3 years ago
Adrian Gruntkowski c65490c1fd Do not render PA contact on self-hosted instances 3 years ago
Adrian Gruntkowski 3d9b5ac60d Use `verify_2fa_input` component in verify 2FA view 3 years ago
Adrian Gruntkowski d7c9fd9ae7 Improve view rendering generated 2FA recovery codes 3 years ago
Adrian Gruntkowski eff196c50b Improve view for verifying 2FA setup 3 years ago
Adrian Gruntkowski 603bc6fbbb Implement `verify_2fa_input` component 3 years ago
Adrian Gruntkowski bd5110358b Improve verify 2FA setup view 3 years ago
Adrian Gruntkowski 1167c2d54d Improve view for initiating 2FA setup 3 years ago
Adrian Gruntkowski d7415f766b Improve `input_with_clipboard` component 3 years ago
Adrian Gruntkowski 666627f378 Implement view for verifying 2FA recovery code 3 years ago
Adrian Gruntkowski 9fac60755e Implement view for verifying 2FA code 3 years ago
Adrian Gruntkowski dc5106f564 Implement view for rendering generated 2FA recovery codes 3 years ago
Adrian Gruntkowski a59116096f Implement view for verifying 2FA setup 3 years ago
Adrian Gruntkowski b4685462ec Implement view for initiating 2FA setup 3 years ago
Adrian Gruntkowski c9f8189130 Implement enabled and disabled 2FA setting state in user settings view 3 years ago
Adrian Gruntkowski 5978cfba53 Implement generic `qr_code` component rendering SVG QR code from text 3 years ago
Adrian Gruntkowski 947578b5ea Add `qr_code` to project dependencies 3 years ago
Adrian Gruntkowski 5df2a3eaca Hook up new `AuthController` actions to router 3 years ago
Adrian Gruntkowski e514089342 Add 2FA actions to `AuthController` 3 years ago
Adrian Gruntkowski 86b9d1680d
Simplify TOTP core logic and add email notifications (#3563)
* Modify API of `Auth.TOTP` to work with simplified flow

* Send email when 2FA is enabled and disabled

* Add tests for `initiated?/1`

* Add tests for email submission and improve recipient address composition

* Fix email tags

* Rename email templates to HEEx

* Fix formatting in email templates
3 years ago
RobertJoonas ff2c3346d2
Bugfix: Allow breakdown by internally used prop keys for Growth plans (#3562)
* fix bug - allow internally used prop key breakdown for Growth plans

* use case instead of with
3 years ago
Marko Saric be48ca2826
Update SECURITY.md 3 years ago
Marko Saric de58a18a85
Keeping footers consistent 3 years ago
Marko Saric 276461e4ea
Comparison updated to keep it consistent with the site 3 years ago
hq1 0f577a998c
Update credo config + extras (#3547)
* Disable CyclomaticComplexity checks

* Move AuhtorizeSitesAPI plug under extra
3 years ago
hq1 88e1d9dc28
Small build updates (#3546)
* Sites API

* Extract Revenue react api helpers

* !fixup

* Extract JS Money module to /extra

* Extract Revenue full build extras (tests pass for full)

* Update MIX_ENV=small mix test

* Remove dead code

* Add moduledocs

* Add credo config

* Trick dialyzer

* DRY revenue metrics

* Use more concise version of on_full_build macro

* Disable credo check
3 years ago
Vinicius Brasil af0b97e68a
Move Mix.Task.DumpPlans to Plausible.Release (#3544)
This commit moves the dump_plans Mix task to the Plausible.Release
module so it can run in production.

Usage: `./bin/plausible eval Plausible.Release.dump_plans`
3 years ago
dependabot[bot] f01b76cc41
Bump eslint from 8.53.0 to 8.54.0 in /tracker (#3533)
Bumps [eslint](https://github.com/eslint/eslint) from 8.53.0 to 8.54.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.53.0...v8.54.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Vinicius Brasil b35096bbc8
Dump plan information to PostgreSQL (#3543)
* Use Ecto.Schema for casting plans from JSON files

* Dump plans to internal database table
3 years ago
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
hq1 819449f19a
Include extra in docker image (#3537) 3 years ago
hq1 b9ec38038c
Add small build option (#3536)
* Update applications

* Clone community config

* Move modules to experimental dir

* Update runtime config

* Apply first set of compile-time conditionals

* Move funnel schemas to experimental

* Make funnel schema-less build compile

* Use experimental/lib for elixir code

* Move JS funnels to experimental

* Clean up conditional rendering

* Tidy up the pipeline

* Make two builds pass tests without warnings

* Reuse existing dotenvs

* Do a bunch of renames

* Clean up naming

* Run secondary CI

* Update router

* Remove RewriteFunnelDupes migration

Tests were disabled already and it was a one-off shot

* Fixup quota mixins

* Add moduledoc

* Change MIX_ENV for seconary test run

* Skip crm on small

* !fixup

* Exclude flags pipeline

* Update lib/plausible_web/controllers/stats_controller.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
3 years ago
Adrian Gruntkowski 2512f3cbe2
Create migration adding TOTP fields to `users` and recovery codes table (#3535) 3 years ago
Adrian Gruntkowski 9b0a6e6e7d
Improve LiveView flash messages (#3523)
* Cancel existing flash timer before setting a new one

* Abstract flash logic across live views

* Render flash messages one after another
3 years ago
ruslandoga 4586e091a5
Update PromEx to fix a memory leak in benchmarks (#3532) 3 years ago
RobertJoonas 02a1271ee4
Bugfix site transfers (#3531)
* Bugfix: allow ownership transfers when premium features enabled but not used

Fields like `props_enabled` and `funnels_enabled` are true by default,
and these fields do not indicate whether the user/site is actually using
these features or not.

* allow site transfers if they will be at limit after transfer

* small refactor
3 years ago
Vinicius Brasil 0175158e81
List only premium features on the CRM (#3530) 3 years ago