Skip to content

Commit 1531415

Browse files
committed
Merge pull request #41 from nick2il/master
Fix of bug on the settings.
2 parents 8988538 + 15946cf commit 1531415

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/Tricks/Repositories/Eloquent/UserRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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']);

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ After this simple configuration you can populate the database by running a coupl
6363
6464
CD 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
6970
This will create the database structure and populate the database with some sample data so that you could see this project in action.
7071

0 commit comments

Comments
 (0)