Discussion:
[PacketFence-devel] Change temporary password length
Andy A
2015-08-05 12:34:37 UTC
Permalink
Hi.
Using PF5.2 on Centos 6.6 in Inline mode.I would like to change the temporary password length for the local account once the user register, as they are too long for some users.
I have changed it in lib/pf/password.pm
sub _generate_password { my $password = word(8, 12); # if password is nasty generate another one (until we get a clean one) while(Crypt::GeneratePassword::restrict($password, undef)) { $password = word(8, 12); } return $password;}
Is there any other place, I need to change it? And any side effects?Thanks.
Loading...