Plugin Directory

Changeset 2741563


Ignore:
Timestamp:
06/13/2022 10:58:29 AM (4 years ago)
Author:
jimseconde
Message:

Update for 1.0.2 to add tutorial to settings page

Location:
vonage-2fa/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • vonage-2fa/trunk/readme.txt

    r2701770 r2741563  
    33Requires at least: 5.7
    44Tested up to: 5.9.2
    5 Stable tag: 1.0.0
     5Stable tag: 1.0.2
    66Requires PHP: 8.0
    77License: Apache 2.0
  • vonage-2fa/trunk/vonage2fa.php

    r2708671 r2741563  
    66  Description: Use Vonage's APIs for 2FA
    77  Author: Vonage
    8   Version: 1.0.0
     8  Version: 1.0.2
    99  Author URI: https://developer.vonage.com/
    1010*/
    1111
    12 const PLUGIN_VERSION ='1.0.0';
     12const PLUGIN_VERSION ='1.0.2';
    1313const RESPONSE_PIN_OK = "0";
    1414const RESPONSE_PIN_INVALID = "16";
     
    7171    <h1>Built in 2FA</h1>
    7272    <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,
    7476    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>
    7677    <div>
    7778        <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();
    8182    echo "
    8283        </form>
    8384    </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>";
    8591}
    8692
Note: See TracChangeset for help on using the changeset viewer.