Changeset 2052


Ignore:
Timestamp:
07/21/17 17:10:33 (7 years ago)
Author:
nanardon
Message:

Ensure --force is applied when using --input

File:
1 edited

Legend:

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

    r1997 r2052  
    8686    if ($res !~ /^ok$/) { 
    8787        print "Password quality: " . $res . "\n"; 
    88         print "Cannot set bad password, use --force to bypass security\n" unless($force); 
    89         return 0; 
     88        unless($force) { 
     89            print "Cannot set bad password, use --force to bypass security\n"; 
     90            return 0; 
     91        } 
    9092    } 
    9193 
Note: See TracChangeset for help on using the changeset viewer.