From 34f891bb44f9e67f6fc14eab9f51537028072a56 Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Fri, 4 Aug 2023 11:56:00 +0100 Subject: [PATCH] language changes for mfa requirement --- CHANGELOG.md | 8 ++ .../live/project_live/settings.html.heex | 99 +++++++++++++------ test/lightning_web/live/project_live_test.exs | 2 +- 3 files changed, 76 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10164e7cd0..60b136e1a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,14 @@ and this project adheres to ### Added +### Changed + +### Fixed + +## [v0.7.0] - 2023-08-04 + +### Added + - Project owners can require MFA for their users [892](https://github.com/OpenFn/Lightning/issues/892) diff --git a/lib/lightning_web/live/project_live/settings.html.heex b/lib/lightning_web/live/project_live/settings.html.heex index 8c1f090d39..240a1a0f83 100644 --- a/lib/lightning_web/live/project_live/settings.html.heex +++ b/lib/lightning_web/live/project_live/settings.html.heex @@ -18,7 +18,7 @@ hash="project" > - Project + Setup +
+
Project setup
+ + Projects are isolated workspaces that contain workflows, accessible to certain users. + +
+
-
Project details
+
Project Identity
- Projects are isolated workspaces that contain workflows, accessible to certain users. + This metadata helps you idenity the types of workflows managed in this project and the people that have access.
<.form @@ -116,7 +125,7 @@
Version control

- Export your project as code, to save this version or edit your project locally + Export your project as code, to save this version or edit your project locally.

<%= if can_edit_project(assigns) do %> -
- - - Require Multi-Factor Authentication - - - This adds an additional layer of security to your project by requiring - all project members to have enabled Multi-Factor Authentication in order to access it. - - - +
+
+
+

+ +
+ + + Require MFA? + + <%= if @project.requires_mfa do %> + (currently required for this project) + <% else %> + (currently optional for this project) + <% end %> + + +
+
<% end %> diff --git a/test/lightning_web/live/project_live_test.exs b/test/lightning_web/live/project_live_test.exs index ca2735c32e..053b00cb34 100644 --- a/test/lightning_web/live/project_live_test.exs +++ b/test/lightning_web/live/project_live_test.exs @@ -500,7 +500,7 @@ defmodule LightningWeb.ProjectLiveTest do "#security" ) - assert html =~ "Require Multi-Factor Authentication" + assert html =~ "Multi-Factor Authentication" end test "project admin can't edit project name and description with invalid data",