Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Tricks/Repositories/Eloquent/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down