Mot de passe de DB sans caractères spéciaux
This commit is contained in:
parent
b750489f69
commit
6b49fefbcb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user