Mot de passe de DB sans caractères spéciaux

This commit is contained in:
Daniel Berteaud 2012-09-05 10:21:54 +02:00
parent b750489f69
commit 6b49fefbcb
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
|| $DB->new_record('mozilla-sync', {type => 'service'});
my $pw = $rec->prop('DbPassword');
if (not $pw){
$pw=`/usr/bin/openssl rand -base64 15 | tr -c -d '[:graph:]'`;
$pw=`/usr/bin/openssl rand -base64 40 | tr -c -d '[:alpha:]'`;
$rec->set_prop('DbPassword', $pw);
}
}