From 79b2b931485e2ba2f0d711ea26949773f6c60f22 Mon Sep 17 00:00:00 2001 From: Tautvydas Date: Thu, 26 Nov 2015 14:12:40 +0200 Subject: [PATCH] Fix Password encryption when creating the first account --- src/Commands/QuickAdminInstall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/QuickAdminInstall.php b/src/Commands/QuickAdminInstall.php index 3a69469..55e240d 100644 --- a/src/Commands/QuickAdminInstall.php +++ b/src/Commands/QuickAdminInstall.php @@ -84,7 +84,7 @@ public function createUser() { $data['name'] = $this->ask('Administrator name'); $data['email'] = $this->ask('Administrator email'); - $data['password'] = $this->secret('Administrator password'); + $data['password'] = bcrypt($this->secret('Administrator password')); $data['role_id'] = 1; User::create($data); $this->info('User has been created');