Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2fa.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Author: dxw
Author URI: http://dxw.com
Network: true
Version: 2.0.2
Version: 2.0.3
*/

$registrar = require __DIR__.'/src/load.php';
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.0.3] - 2024-12-19

### Changed

- Allow disabling of Twilio SMS 2FA (via TWILIO_DISABLED constant)

## [v2.0.2] - 2024-12-19

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ WordPress plugin for 2 factor authentication (TOTP and SMS)

At the moment this plugin must be installed on a multisite installation.

If you don't have a Twilio account, there's currently no way to hide SMS from the setup page.

To enable SMS authentication add these constants to your wp-config.php:

define('TWILIO_ACCOUNT_SID', 'AC...');
Expand All @@ -16,6 +14,8 @@ To enable SMS authentication add these constants to your wp-config.php:

You can find those [here](https://www.twilio.com/user/account/voice-sms-mms/getting-started).

If there is no Twilio account setup for SMS authentication or it needs to be disabled, add a constant `TWILIO_DISABLED`

## Usage

Super admins can decide which users must use 2FA. Users cannot opt to start using 2FA if it has not been enabled for their account.
Expand Down
2 changes: 2 additions & 0 deletions views/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
</div>
</div>
</li>
<?php if (!defined('TWILIO_DISABLED')): ?>
<li>
<label>
<input type="radio" name="2fa_setup_device" value="sms" ng-model="$root.mode">
Expand All @@ -67,6 +68,7 @@
<p>Give your mobile a name that you can later use to identify it: <input type="text" ng-model="$root.device_name"></p>
</div>
</li>
<?php endif; ?>
<li>
<label>
<input type="radio" name="2fa_setup_device" value="email" ng-model="$root.mode">
Expand Down
Loading