File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/Tricks/Repositories/Eloquent Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ protected function usernameIsAllowed($username)
149149 public function updateSettings (User $ user , array $ data )
150150 {
151151 $ user ->username = $ data ['username ' ];
152- $ user ->password = ($ data ['password ' ] != '' ) ? $ data ['password ' ] : $ user ->password ;
152+ $ user ->password = ($ data ['password ' ] != '' ) ? Hash:: make ( $ data ['password ' ]) : $ user ->password ;
153153
154154 if ($ data ['avatar ' ] != '' ) {
155155 File::move (public_path ().'/img/avatar/temp/ ' .$ data ['avatar ' ], 'img/avatar/ ' .$ data ['avatar ' ]);
Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ After this simple configuration you can populate the database by running a coupl
6363
6464CD into the directory of this project and run the following two commands:
6565
66- 1. `php artisan migrate`
67- 2. `php artisan db:seed`
66+ 1. `composer install`
67+ 2. `php artisan migrate`
68+ 3. `php artisan db:seed`
6869
6970This will create the database structure and populate the database with some sample data so that you could see this project in action.
7071
You can’t perform that action at this time.
0 commit comments