Skip to content

Commit

Permalink
Fix auth user level not updated (#9190)
Browse files Browse the repository at this point in the history
* Fix auth user level not updated

* Update all fields
  • Loading branch information
murrant committed Sep 12, 2018
1 parent 3ba1c44 commit 4abd849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Providers/LegacyUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ protected function fetchUserByName($username, $password = null)
$user = User::thisAuth()->firstOrNew(['username' => $username], $new_user);
/** @var User $user */

// doing this here in case it was null (legacy)
$user->auth_type = $type;

$user->fill($new_user); // fill all attributes
$user->auth_type = $type; // doing this here in case it was null (legacy)
$user->auth_id = $auth_id;
$user->save();

Expand Down

0 comments on commit 4abd849

Please sign in to comment.