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']); diff --git a/readme.md b/readme.md index 0c5d334..795572c 100644 --- a/readme.md +++ b/readme.md @@ -63,8 +63,9 @@ After this simple configuration you can populate the database by running a coupl 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.