Changeset 2043


Ignore:
Timestamp:
06/13/17 20:43:05 (7 years ago)
Author:
nanardon
Message:

make la-ban-passwd use base->passCrypt()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/bin/la-ban-passwd

    r1756 r2043  
    8282} else { 
    8383    if ($encrypted) { 
    84         my @salt_char = (('a' .. 'z'), ('A' .. 'Z'), (0 .. 9), '/', '.'); 
    85         my $salt = join('', map { $salt_char[rand(scalar(@salt_char))] } (1 .. 8)); 
    86         $password = crypt($password, '$1$' . $salt); 
     84        $password = $labase->passCrypt($password); 
    8785    } 
    8886    $obj->storeBannedPassword($password); 
Note: See TracChangeset for help on using the changeset viewer.