summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/environment.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/environment.rb b/lib/environment.rb
index ee36366..354190c 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -25,8 +25,11 @@ else
puts "Please edit #{user_file} and restart your application."
exit
end
-if @@users.length < 1 or !@@users
- puts "Please edit #{user_file} and restart your application."
+
+begin
+ 0 < @@users[:users].keys.length
+rescue
+ puts "Please edit #{user_file} and restart your application. Create at least one user with password."
exit
end