Plugin Directory

Changeset 1966060


Ignore:
Timestamp:
10/30/2018 08:04:38 PM (7 years ago)
Author:
dommholland
Message:

support for earlier PHP version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • byepass/trunk/byepass.php

    r1965014 r1966060  
    1919               
    2020        //only show our login form if we have a key alredy 
    21         if (get_option('byepass_key') and !empty(get_option('byepass_key'))) { 
     21        if (get_option('byepass_key') and strlen(get_option('byepass_key')) >= 32) {   
    2222            add_action('login_head', array($this, 'byepass_login'));   
    2323        }   
     
    109109
    110110        <table class="form-table">               
    111           <?php if (!empty(get_option('byepass_email')) and !empty(get_option('byepass_key')) and !empty(get_option('byepass_secret'))) { ?>             
     111          <?php if (strpos(get_option('byepass_email'),"@") and strlen(get_option('byepass_key')) >= 32 and strlen(get_option('byepass_secret')) >= 32) { ?>             
    112112          <tr valign="top"><td>Byepass is configured!</td></tr>
    113113          <tr valign="top"><td>To login use your Wordpress email: <?php echo sanitize_email(get_option('byepass_email')); ?>!</td></tr>
Note: See TracChangeset for help on using the changeset viewer.