Deploy new admin user did not use resultset
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2.023002 - 2014-02-17
|
||||||
|
|
||||||
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* Deploy new admin user did not use resultset
|
||||||
|
|
||||||
2.023001 - 2014-02-14
|
2.023001 - 2014-02-14
|
||||||
|
|
||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|||||||
@@ -74,4 +74,4 @@ resources:
|
|||||||
homepage: http://netdisco.org/
|
homepage: http://netdisco.org/
|
||||||
license: http://opensource.org/licenses/bsd-license.php
|
license: http://opensource.org/licenses/bsd-license.php
|
||||||
repository: git://git.code.sf.net/p/netdisco/netdisco-ng
|
repository: git://git.code.sf.net/p/netdisco/netdisco-ng
|
||||||
version: 2.023001
|
version: 2.023002
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ sub _make_password {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $users = schema('netdisco')->resultset('User')->search({-bool => 'admin'});
|
my $users = schema('netdisco')->resultset('User');
|
||||||
if ($users->count == 0) {
|
if ($users->search({-bool => 'admin'})->count == 0) {
|
||||||
say '';
|
say '';
|
||||||
print color 'bold green';
|
print color 'bold green';
|
||||||
say 'We need to create a user for inital login. This user will be a full Administrator.';
|
say 'We need to create a user for inital login. This user will be a full Administrator.';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use 5.010_000;
|
|||||||
use File::ShareDir 'dist_dir';
|
use File::ShareDir 'dist_dir';
|
||||||
use Path::Class;
|
use Path::Class;
|
||||||
|
|
||||||
our $VERSION = '2.023001';
|
our $VERSION = '2.023002';
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
if (not ($ENV{DANCER_APPDIR} || '')
|
if (not ($ENV{DANCER_APPDIR} || '')
|
||||||
|
|||||||
Reference in New Issue
Block a user