Ignore:
Timestamp:
01/28/15 18:37:47 (9 years ago)
Author:
nanardon
Message:

interdire les mot de passe non ascii

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm

    r1182 r1278  
    422422    my ( $self, $password ) = @_; 
    423423    my $dictionary; 
     424 
     425    if ($password !~ /^[[:ascii:]]*$/) { 
     426       return "the password must contains ascii characters only"; 
     427    } 
    424428 
    425429    return fascist_check($password, $dictionary); 
Note: See TracChangeset for help on using the changeset viewer.