From e65b146c79825f9b7f5660ebce284b4b66c13966 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 19 Apr 2012 02:23:32 +0200 Subject: wibble --- fripost-newdomain | 2 +- fripost-passwd | 3 +++ lib/Fripost/Password.pm | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fripost-newdomain b/fripost-newdomain index 7cbac3b..6156459 100755 --- a/fripost-newdomain +++ b/fripost-newdomain @@ -22,7 +22,7 @@ If I is not given, the user is prompted for it. By default, B prompts for the owner of the new domain; Use B<--owner=>I<''> to create a "global" domain, only managed by the administrators. -Several users can manage the same domain togother. (TODO: is that what we +Several users can manage the same domain together. (TODO: is that what we want?) If B warns if it is asked to register an existing domain to a new owner. diff --git a/fripost-passwd b/fripost-passwd index f508e9d..e03deb5 100755 --- a/fripost-passwd +++ b/fripost-passwd @@ -98,6 +98,9 @@ The root DN for everything done by B. =cut +# TODO: add flag --reset to automatically generate a new password and +# send it to the user (in case he/she has forgotten the password). + use FindBin qw($Bin); use lib "$Bin/lib"; diff --git a/lib/Fripost/Password.pm b/lib/Fripost/Password.pm index 595502d..53a10f7 100755 --- a/lib/Fripost/Password.pm +++ b/lib/Fripost/Password.pm @@ -77,7 +77,7 @@ sub hash ($$$) { sub is_salted { return ( not ( defined $_[0] ) or $_[0] ne '' ) }; -# Generate (random) salt, with a (random) length of 23 to 31 bytes. +# Generate (random) salt, with a (random) length of 24 to 31 bytes. sub make_salt { my $len = 31 - int( rand(8) ); my @bytes = (); -- cgit v1.2.3