Plugin Directory

Changeset 1867924


Ignore:
Timestamp:
05/03/2018 07:57:54 AM (8 years ago)
Author:
unloqer
Message:

Fixed an issue with session_start()

Location:
unloq/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • unloq/trunk/autoloader/login/class-login.php

    r1773107 r1867924  
    834834                $widget_welcome_text,
    835835                '<style>
    836                 body{
    837                     height: 100%;
    838                     min-height:100%;
    839                     background-size: cover;
    840                     background-position: center center;
    841                     background-image: url(' . $this->utility->rgar($this->customise, 'image_login_background_image') . ');
    842                 }
    843                 #logo-holder{
    844                     max-width: 240px;
    845                     height: 96px;
    846                     position: absolute;
    847                     top: 100px;
    848                     left: 50%;
    849                     margin-left: -500px;
    850                     overflow: hidden;
    851                 }
    852                 #logo-holder img{
    853                     max-width: 100%;
    854                 }
    855                 @media(max-width: 1024px){
    856                     #logo-holder{
    857                         position: relative;
    858                         top: 20px;
    859                         left: auto;
    860                         margin: 0 auto;
    861                     }
    862                 }
    863                 #welcome-text{
    864                     text-align: center;
    865                     font-size: 22px;
    866                     padding-top: 50px;
    867                 }
    868                 #uapp a {
    869                   color: ' . $this->utility->rgar($this->customise, "color_link", "#3da0e3") . ';
    870                 }
    871                 #uapp .widget-button > button,
    872                 #uapp .widget-container .success-container {
    873                   background-color: ' . $this->utility->rgar($this->customise, "color_primary", "#000000") . ' !important;
    874                 }
    875                 #uapp .widget-button .spinner > circle {
    876                   stroke: ' . $this->utility->rgar($this->customise, "color_primary", "#000000") . ' !important;
    877                 }
    878                 #uapp .app-error {
    879                   color: ' . $this->utility->rgar($this->customise, "color_error", "#fd5252") . ' !important;
    880                 }
    881 
    882                 </style>'
     836                body{
     837                    height: 100%;
     838                    min-height:100%;
     839                    background-size: cover;
     840                    background-position: center center;
     841                    background-image: url(' . $this->utility->rgar($this->customise, 'image_login_background_image') . ');
     842                }
     843                #logo-holder{
     844                    max-width: 240px;
     845                    height: 96px;
     846                    position: absolute;
     847                    top: 100px;
     848                    left: 50%;
     849                    margin-left: -500px;
     850                    overflow: hidden;
     851                }
     852                #logo-holder img{
     853                    max-width: 100%;
     854                }
     855                @media(max-width: 1024px){
     856                    #logo-holder{
     857                        position: relative;
     858                        top: 20px;
     859                        left: auto;
     860                        margin: 0 auto;
     861                    }
     862                }
     863                #welcome-text{
     864                    text-align: center;
     865                    font-size: 22px;
     866                    padding-top: 50px;
     867                }
     868                #uapp a {
     869                  color: ' . $this->utility->rgar($this->customise, "color_link", "#3da0e3") . ';
     870                }
     871                #uapp .widget-button > button,
     872                #uapp .widget-container .success-container {
     873                  background-color: ' . $this->utility->rgar($this->customise, "color_primary", "#000000") . ' !important;
     874                }
     875                #uapp .widget-button .spinner > circle {
     876                  stroke: ' . $this->utility->rgar($this->customise, "color_primary", "#000000") . ' !important;
     877                }
     878                #uapp .app-error {
     879                  color: ' . $this->utility->rgar($this->customise, "color_error", "#fd5252") . ' !important;
     880                }
     881
     882                </style>'
    883883            );
    884884            $content = str_replace($rep, $rep_w, $content);
     
    10851085    {
    10861086        if (!isset($this->settings['sso']) || $this->settings['sso'] !== 'true') return;
    1087         if (!session_id()) {
    1088             session_start();
    1089         }
    10901087        add_action('init', array($this, "sso_request_start"), 2);
    10911088    }
     
    11211118        if (is_admin()) return;
    11221119        if (!isset($GLOBALS['pagenow']) || $GLOBALS['pagenow'] !== 'wp-login.php') return;
     1120        if (!session_id()) session_start();
    11231121        wp_enqueue_script('uq-login-compat', UQ_VENDORS . '/ui/js/login.compat.js', array('jquery'), UQ_VERSION, true);
    11241122        wp_enqueue_style('uq-login-compat', UQ_VENDORS . '/ui/css/login.compat.css', array(), UQ_VERSION, 'all');
  • unloq/trunk/readme.txt

    r1840596 r1867924  
    119119
    120120== Changelog ==
     121= 2.1.20 =
     122* Fixed an issue with session_start()
    121123= 2.1.19 =
    122124* Fixed the login_redirect filter that is being applied to include the current user and the requested redirect url.
  • unloq/trunk/unloq.php

    r1773107 r1867924  
    33 * Plugin Name:       UNLOQ Authentication
    44 * Description:       Perform UNLOQ.io authentications with the click of a button
    5  * Version:           2.1.19
     5 * Version:           2.1.20
    66 * Author:            UNLOQ.io
    77 * Author URI:        https://unloq.io
     
    1818
    1919define('UQ_PLUGIN', 'unloq');
    20 define('UQ_VERSION', '2.1.19');
     20define('UQ_VERSION', '2.1.20');
    2121define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors');
    2222define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors');
Note: See TracChangeset for help on using the changeset viewer.