Skip to content

Modular logistics and supply chain operating system (LSOS)

fix enforce toggle action

Ronald A. Richardson87c1a56fd1e1
diff --git a/console/app/controllers/console/admin/two-fa-settings.js b/console/app/controllers/console/admin/two-fa-settings.js
index a7b85df8..c4a74a5d 100644
--- a/console/app/controllers/console/admin/two-fa-settings.js
+++ b/console/app/controllers/console/admin/two-fa-settings.js
@@ -86,10 +86,10 @@ export default class ConsoleAdminTwoFaSettingsController extends Controller {
* Action method triggered when Two-Factor Authentication enforcement is toggled.
*
* @action
- * @param {Boolean} isEnabled - The new state of Two-Factor Authentication.
+ * @param {Boolean} isEnforced - The new state of Two-Factor Authentication.
*/
- @action onTwoFaEnforcedToggled(isEnabled) {
- this.onTwoFaEnforcedToggled = isEnabled;
+ @action onTwoFaEnforcedToggled(isEnforced) {
+ this.isTwoFaEnforced = isEnforced;
}
/**