WordPress.org

Plugin Directory


Ignore:
Timestamp:
12/16/08 16:33:35 (5 years ago)
Author:
misterbisson
Message:

fixed a problem with adding users to non-MU blogs because the password field was hidden, but required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpcas/trunk/wpcas.php

    r73868 r80423  
    22/* 
    33Plugin Name: wpCAS 
    4 Version: 1.03 
     4Version: 1.04 
    55Plugin URI: http://maisonbisson.com/projects/wpcas 
    66Description: Plugin to integrate WordPress or WordPressMU with existing <a href="http://en.wikipedia.org/wiki/Central_Authentication_Service">CAS</a> single sign-on architectures. Based largely on <a href="http://schwink.net">Stephen Schwink</a>'s <a href="http://wordpress.org/extend/plugins/cas-authentication/">CAS Authentication</a> plugin. Optionally, you can set a function to execute when a CAS username isn't found in WordPress (so, for example, you could provision a WordPress account for them).  
     
    131131    // hide password fields on user profile page. 
    132132    function show_password_fields( $show_password_fields ) { 
     133        $random_password = substr( md5( uniqid( microtime( ))), 0, 8 ); 
     134 
     135?> 
     136<input name="pass1" type="hidden" id="pass1" value="<?php echo $random_password ?>" /> 
     137<input name="pass2" type="hidden" id="pass2" value="<?php echo $random_password ?>" /> 
     138<?php 
    133139        return false; 
    134140    } 
Note: See TracChangeset for help on using the changeset viewer.