Changeset 2741563
- Timestamp:
- 06/13/2022 10:58:29 AM (4 years ago)
- Location:
- vonage-2fa/trunk
- Files:
-
- 1 added
- 2 edited
-
assets/vonage-login-pin.png (added)
-
readme.txt (modified) (1 diff)
-
vonage2fa.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vonage-2fa/trunk/readme.txt
r2701770 r2741563 3 3 Requires at least: 5.7 4 4 Tested up to: 5.9.2 5 Stable tag: 1.0. 05 Stable tag: 1.0.2 6 6 Requires PHP: 8.0 7 7 License: Apache 2.0 -
vonage-2fa/trunk/vonage2fa.php
r2708671 r2741563 6 6 Description: Use Vonage's APIs for 2FA 7 7 Author: Vonage 8 Version: 1.0. 08 Version: 1.0.2 9 9 Author URI: https://developer.vonage.com/ 10 10 */ 11 11 12 const PLUGIN_VERSION ='1.0. 0';12 const PLUGIN_VERSION ='1.0.2'; 13 13 const RESPONSE_PIN_OK = "0"; 14 14 const RESPONSE_PIN_INVALID = "16"; … … 71 71 <h1>Built in 2FA</h1> 72 72 <p>A text is sent out with a 2FA code to the user's provided mobile number.</p> 73 <p>This plugin requires a Vonage account to work. <strong>If you run out of credit on your Vonage account, 73 <p>This plugin requires a Vonage Developer Account to work.<br> 74 <p>If you don't have a Developer Account, you can follow the instructions below the settings fields.</p> 75 <strong>If you run out of credit on your Vonage account, 74 76 your users may be locked out if they are unable to complete the 2FA process.</strong><br> 75 </p><a target='_blank' href='https://dashboard.nexmo.com/'>Click here to go to your Vonage Dashboard.</a><p></p>76 77 <div> 77 78 <form action='options.php' method='post'>"; 78 settings_fields( 'vonage_api_settings_options');79 do_settings_sections('vonage_2fa_plugin');80 submit_button();79 settings_fields( 'vonage_api_settings_options'); 80 do_settings_sections('vonage_2fa_plugin'); 81 submit_button(); 81 82 echo " 82 83 </form> 83 84 </div> 84 "; 85 <h2>Setup Tutorial</h2> 86 <p>1. Head to <a target=\'_blank\' href=\'https://dashboard.nexmo.com/sign-up\'>https://dashboard.nexmo.com/sign-up</a> to create a new Vonage API Account. 87 <p>2. Once you have an account with credit, you\'ll need the following keys:</p> 88 <img src='" . plugin_dir_url(__FILE__ ) . "assets/vonage-api-screenshot.png' alt='Vonage logo'>"; 89 echo " 90 <p>Paste these two values into the corresponding fields above, and you're all set.</p>"; 85 91 } 86 92
Note: See TracChangeset
for help on using the changeset viewer.