Revert back changes during debug. Remove Auto login after register.

This commit is contained in:
Too
2018-06-20 17:30:53 +08:00
parent e6d58004bc
commit 93d866f432
2 changed files with 2 additions and 2 deletions
@@ -76,7 +76,6 @@ class RegisterController extends Controller
$user->save();
$user->attachRole($role);
Auth::login($user);
return response()->json($user, 201);
}
}
+2 -1
View File
@@ -28,6 +28,7 @@ class RegisterTest extends TestCase
'password_confirmation' => 'secret',
'marking' => $this->marking->marking
])
->assertSuccessful();
->assertSuccessful()
->assertJsonStructure(['id', 'name', 'email']);
}
}