Changeset 32252

Show
Ignore:
Timestamp:
10/21/09 02:50:58 (5 months ago)
Author:
kent1@…
Message:

le pass updaté uniquement s'il y en a un => pas de pass vide

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/inscription2/inscription2_2_0/formulaires/inscription2.php

    r32173 r32252  
    294294                if (strlen(_request('password')) != 0) 
    295295                        $new_pass = _request('password'); 
    296                 else 
    297                         $new_pass = _request('pass'); 
    298                 if (strlen($new_pass)) { 
     296                         
     297                         
     298                if (strlen($new_pass)>0) { 
    299299                        include_spip('inc/acces'); 
    300300                        $htpass = generer_htpass($new_pass); 
     
    308308                        $val['low_sec'] = ''; 
    309309                } 
     310                 
    310311                if(!is_numeric($id_auteur)){ 
    311312                        $val['statut'] = lire_config('inscription2/statut_nouveau','6forum'); 
     
    315316                        $val['statut'] = 'aconfirmer'; 
    316317                } 
     318        } 
     319        $pass_length = strlen($val['pass']); 
     320        if($pass_length == 0){ 
     321                unset($val['pass']); 
    317322        } 
    318323