enable Bcrypt password storage

This commit is contained in:
Oliver Gorwits
2014-02-08 19:10:03 +00:00
parent f8cf6aad73
commit 545f878cb7
11 changed files with 114 additions and 66 deletions

View File

@@ -99,9 +99,9 @@ $bool = $term->ask_yn(
);
deploy_db() if $bool;
say '';
my $users = schema('netdisco')->resultset('User');
if ($users->count == 0) {
say '';
$bool = $term->ask_yn(
prompt => 'Would you like a default web user with Admin rights (discover, etc)?',
default => 'n',
@@ -136,6 +136,10 @@ if ($users->count == 0) {
}
}
}
elsif (!setting('safe_password_store')) {
say '*** WARNING: Weak password hashes are being stored in the database! ***';
say '*** WARNING: Please add "safe_password_store: true" to your ~/environments/deployment.yml file. ***';
}
say '';
$bool = $term->ask_yn(