plugins/SpecialUserPrefs.php
changeset 256 62ee6685ad18
parent 224 6a4573507ff8
child 286 b2f985e4cef3
equal deleted inserted replaced
197:90b7a52bea45 256:62ee6685ad18
   210           // case, if he's smart enough to hack the encryption code, he's probably
   210           // case, if he's smart enough to hack the encryption code, he's probably
   211           // smart enough to remember his password.
   211           // smart enough to remember his password.
   212           
   212           
   213           if ( strlen($newpass) > 0 )
   213           if ( strlen($newpass) > 0 )
   214           {
   214           {
       
   215             if ( defined('ENANO_DEMO_MODE') )
       
   216               $errors .= '<div class="error-box" style="margin: 0 0 10px 0;">You can\'t change your password in demo mode.</div>';
   215             // Perform checks
   217             // Perform checks
   216             if ( strlen($newpass) < 6 )
   218             if ( strlen($newpass) < 6 )
   217               $errors .= '<div class="error-box" style="margin: 0 0 10px 0;">Password must be at least 6 characters. You hacked my script, darn you!</div>';
   219               $errors .= '<div class="error-box" style="margin: 0 0 10px 0;">Password must be at least 6 characters. You hacked my script, darn you!</div>';
   218             if ( getConfig('pw_strength_enable') == '1' )
   220             if ( getConfig('pw_strength_enable') == '1' )
   219             {
   221             {