plugins/yubikey/auth.php
changeset 5 2114640729a5
parent 3 d0fe7acaf0e8
child 17 e04c0f64e972
equal deleted inserted replaced
4:73aecd46bb56 5:2114640729a5
   163     }
   163     }
   164   }
   164   }
   165   // Do we need to have the password validated?
   165   // Do we need to have the password validated?
   166   if ( $do_validate_pass )
   166   if ( $do_validate_pass )
   167   {
   167   {
       
   168     if ( empty($userdata['password']) )
       
   169     {
       
   170       return array(
       
   171           'mode' => 'error',
       
   172           'error' => 'yubiauth_err_must_have_password'
       
   173         );
       
   174     }
   168     // Yes; return and let the login API continue
   175     // Yes; return and let the login API continue
   169     return null;
   176     return null;
   170   }
   177   }
   171   else
   178   else
   172   {
   179   {