Plugin Directory

Changeset 2156379


Ignore:
Timestamp:
09/14/2019 12:46:42 AM (6 years ago)
Author:
schway
Message:

v1.1

Location:
wp-safepassword/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-safepassword/trunk/cms/main.php

    r2152439 r2156379  
    307307            $billed = $spclasses->option->get('billed', $spcms['user_id']);
    308308        ?>
    309             <h3><?php _e($sptext['login_with_safepassword'], "blank"); ?></h3>
     309            <h3 id="login-with-safepassword"><?php _e($sptext['login_with_safepassword'], "blank"); ?></h3>
    310310
    311311            <table class="form-table bmsp-register">
  • wp-safepassword/trunk/cms/resources.php

    r2152439 r2156379  
    231231            $account_type = $spclasses->option->get('type', $spcms['user_id']);
    232232           
    233             // General Data
     233            // General Data 
    234234            array_push($js_html,   'window.spsafepwd = [];');
    235235            array_push($js_html,   'var spsafepwd = [];');
     
    238238            array_push($js_html,   '    spsafepwd["status"] = "'.$status.'";');
    239239            array_push($js_html,   '    spsafepwd["api_url"] = "'.$spcms['api_url'].'";');
     240            array_push($js_html,   '    spsafepwd["profile_url"] = "'.get_edit_profile_url($spcms['user_id']).'#login-with-safepassword";');
    240241            array_push($js_html,   '    spsafepwd["type"] = "'.$spcms['type'].'";');
    241242            array_push($js_html,   '    spsafepwd["role"] = "'.$spcms['role'].'";');
  • wp-safepassword/trunk/js/connection.js

    r2152439 r2156379  
    9090                                          true);
    9191
    92                         window.location.href = window.location.href;
     92                        // Redirect to your profile page
     93                        window.location.href = spsafepwd["profile_url"];
    9394                    } else {
    9495                        // Load Step 2
  • wp-safepassword/trunk/readme.txt

    r2156358 r2156379  
    7878== Frequently Asked Questions ==
    7979
    80 - **How to connect with SafePassword ?**
     80- **How to connect with SafePassword Login Security service ?**
    8181
    8282- After the plugin activation you'll be redirected to the SafePassword dashboard, so that you can finalize the connection.
     
    101101== Changelog ==
    102102
     103= 1.1 =
     104* Redirecting to profile page for enabling Login with SafePassword (after the connection has been completed).
     105
    103106= 1.0 =
    104107* Initial Release.
Note: See TracChangeset for help on using the changeset viewer.