@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | if (count($user->groups)) { |
24 | 24 | // remove the users existing database roles before assigning new ones |
25 | 25 | \DB::table('assigned_roles') |
26 | - ->where('entity_id', $authUser->id) |
|
27 | - ->where('entity_type', get_class($authUser)) |
|
28 | - ->delete(); |
|
26 | + ->where('entity_id', $authUser->id) |
|
27 | + ->where('entity_type', get_class($authUser)) |
|
28 | + ->delete(); |
|
29 | 29 | // add the user to each group they are assigned |
30 | 30 | $authUser->assign($user->groups); |
31 | 31 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | // 'azure_user' => $user |
37 | 37 | // ]); |
38 | 38 | $destination = $request->session() |
39 | - ->get('oauthIntendedUrl', |
|
40 | - config('azure-oath.redirect_on_login') |
|
39 | + ->get('oauthIntendedUrl', |
|
40 | + config('azure-oath.redirect_on_login') |
|
41 | 41 | ); |
42 | 42 | //\Illuminate\Support\Facades\Log::info('AUTH success with redirect url '.$destination); |
43 | 43 | return redirect($destination); |