From 11d5199bb4572a74bbc61fd460bf01aa378e1772 Mon Sep 17 00:00:00 2001 From: Nikolai Ilushko Date: Fri, 4 Apr 2014 06:41:32 +0300 Subject: [PATCH 1/3] password wasn't hashed and sent to database fixed. --- app/Tricks/Repositories/Eloquent/UserRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Tricks/Repositories/Eloquent/UserRepository.php b/app/Tricks/Repositories/Eloquent/UserRepository.php index ed30708..0382903 100644 --- a/app/Tricks/Repositories/Eloquent/UserRepository.php +++ b/app/Tricks/Repositories/Eloquent/UserRepository.php @@ -149,7 +149,7 @@ protected function usernameIsAllowed($username) public function updateSettings(User $user, array $data) { $user->username = $data['username']; - $user->password = ($data['password'] != '') ? $data['password'] : $user->password; + $user->password = ($data['password'] != '') ? Hash::make($data['password']) : $user->password; if ($data['avatar'] != '') { File::move(public_path().'/img/avatar/temp/'.$data['avatar'], 'img/avatar/'.$data['avatar']); From 8e7b7d32fbf67e1a87f8e5d15da0cbb51d1515fc Mon Sep 17 00:00:00 2001 From: Nikolai Ilushko Date: Fri, 4 Apr 2014 06:47:16 +0300 Subject: [PATCH 2/3] add instructions to the installation. --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 0c5d334..86fb4cc 100644 --- a/readme.md +++ b/readme.md @@ -61,6 +61,8 @@ After this simple configuration you can populate the database by running a coupl ### Installation +there is a need to run `composer install` + CD into the directory of this project and run the following two commands: 1. `php artisan migrate` From 15946cf045ebec5703170447cbf26d3a86e202ef Mon Sep 17 00:00:00 2001 From: Nikolai Ilushko Date: Fri, 4 Apr 2014 06:49:26 +0300 Subject: [PATCH 3/3] changed the instruction of installation. --- readme.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 86fb4cc..795572c 100644 --- a/readme.md +++ b/readme.md @@ -61,12 +61,11 @@ After this simple configuration you can populate the database by running a coupl ### Installation -there is a need to run `composer install` - CD into the directory of this project and run the following two commands: -1. `php artisan migrate` -2. `php artisan db:seed` +1. `composer install` +2. `php artisan migrate` +3. `php artisan db:seed` This will create the database structure and populate the database with some sample data so that you could see this project in action.