diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php
index 1a061e6..c4092fa 100644
--- a/app/Http/Controllers/Auth/LoginController.php
+++ b/app/Http/Controllers/Auth/LoginController.php
@@ -31,7 +31,9 @@ class LoginController extends Controller
protected function authenticated(Request $request, $user)
{
- if ($user->is_admin) {
+ if ($user->is_compras) {
+ return redirect('compras/pedidos');
+ } else if ($user->is_admin) {
session(['admin_gdc' => $user->grupo_de_compra_id]);
return redirect('admin/pedidos');
} else {
diff --git a/resources/js/components/LoginCompras.vue b/resources/js/components/LoginCompras.vue
new file mode 100644
index 0000000..b68a95e
--- /dev/null
+++ b/resources/js/components/LoginCompras.vue
@@ -0,0 +1,52 @@
+
+