WordPress.org

Plugin Directory

Changeset 388165


Ignore:
Timestamp:
05/23/11 18:00:57 (7 years ago)
Author:
GizzmoAsus
Message:

Updated the soap_auth class to better handle the encryption methods. Updated the readme to include the changelog entry

Location:
soap-authentication/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soap-authentication/trunk/readme.txt

    r382908 r388165  
    3838== Changelog == 
    3939 
     40= 1.3 = 
     41* Updated encryption methods to fix a small issue with select not being passed through correctly 
     42 
    4043= 1.2 = 
    4144* Fixed spelling mistake when setting the encryption method 
  • soap-authentication/trunk/soap_auth.php

    r382908 r388165  
    44    Plugin URI: http://matthewkellett.co.uk/portfolio/soap-auth.php 
    55    Description: Used to externally authenticate WP users using a SOAP Service 
    6     Version: 1.1 
     6    Version: 1.3 
    77    Author: Matthew Kellett 
    88    Author URI: http://matthewkellett.co.uk 
     
    240240        <?php 
    241241        switch($options['enc_method']) { 
    242             case "SHA256 Hash" : 
    243                 echo '<option selected="selected">SHA256 Hash</option><option>SHA1</option><option>MD5</option><option>Plain Text (not advised)</option>'; 
    244             break; 
    245             case "SHA1" : 
    246                 echo '<option>SHA256 Hash</option><option selected="selected">SHA1</option><option>MD5</option><option>Plain Text (not advised)</option>'; 
    247             break; 
    248             case "MD5" : 
    249                 echo '<option>SHA256 Hash</option><option>SHA1</option><option selected="selected">MD5</option><option>Plain Text (not advised)</option>'; 
    250                 break; 
    251             case "Plain" : 
    252                 echo '<option>SHA256 Hash</option><option>SHA1</option><option selected="selected">MD5</option><option selected="selected">Plain Text (not advised)</option>'; 
    253             break; 
    254             default : 
    255                 echo '<option selected="selected">SHA256 Hash</option><option>SHA1</option><option>MD5</option><option>Plain Text (not advised)</option>'; 
    256             break; 
     242            case "sha1" : 
     243                echo '<option value="sha256">SHA256 Hash</option> 
     244                    <option value="sha1" selected="selected">SHA1</option> 
     245                    <option value="md5">MD5</option> 
     246                    <option value="plain">Plain Text (not advised)</option>'; 
     247                break; 
     248            case "md5" : 
     249                echo '<option value="sha256">SHA256 Hash</option> 
     250                    <option value="sha1">SHA1</option> 
     251                    <option value="md5" selected="selected">MD5</option> 
     252                    <option value="plain">Plain Text (not advised)</option>'; 
     253                break; 
     254            case "plain" : 
     255                echo '<option value="sha256">SHA256 Hash</option> 
     256                    <option value="sha1">SHA1</option> 
     257                    <option value="md5">MD5</option> 
     258                    <option value="plain" selected="selected">Plain Text (not advised)</option>'; 
     259                break; 
     260            case "sha256" : 
     261            default: 
     262                echo '<option value="sha256" selected="selected">SHA256 Hash</option> 
     263                    <option value="sha1">SHA1</option> 
     264                    <option value="md5">MD5</option> 
     265                    <option value="plain">Plain Text (not advised)</option>'; 
     266                break; 
    257267        } 
    258268        ?> 
     
    389399            #do the password hash for comparison 
    390400            switch($options['enc_method']) { 
    391                 case "SHA256 Hash" : 
     401                case "sha256" : 
    392402                    $password2 = hash('sha256',trim($password)); 
    393403                    break; 
    394                 case "SHA1" : 
     404                case "sha1" : 
    395405                    $password2 = sha1(trim($password)); 
    396406                break; 
    397                 case "MD5" : 
     407                case "md5" : 
    398408                    $password2 = md5(trim($password)); 
    399409                    break; 
    400                 case "Plain" : 
     410                case "plain" : 
    401411                    $password2 = $password; 
    402412                    break; 
Note: See TracChangeset for help on using the changeset viewer.