stub of auth logins manage page

pull/26/head
Ondřej Hruška 6 years ago
parent 1c6dedbb34
commit d9fe17a940
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      app/Http/Controllers/UserController.php
  2. 4
      resources/views/layouts/main-nav.blade.php
  3. 15
      resources/views/user/oauths.blade.php
  4. 1
      routes/web.php

@ -89,4 +89,9 @@ class UserController extends Controller
return back();
}
public function manageOauth()
{
return view('user.oauths', ['user' => user()]);
}
}

@ -51,6 +51,10 @@
<i class="fa-sliders fa-pr"></i>{{ __('Settings') }}
</a>
<a class="dropdown-item" href="{{ route('user.manage-oauth') }}">
<i class="fa-key-modern fa-pr"></i>{{ __('Social Logins') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>

@ -0,0 +1,15 @@
{{-- Profile edit form --}}
@extends('layouts.app')
@section('content')
<div class="row justify-content-center">
<div class="col-md-10">
@php(Widget::setLayout(3, 7))
{!! Widget::header(1, 'Social Logins') !!}
<p>TODO</p>
</div>
</div>
@endsection

@ -33,6 +33,7 @@ Route::group(['middleware' => 'auth'], function () {
Route::get('edit', 'UserController@edit')->name('user.edit');
Route::post('edit', 'UserController@store')->name('user.store');
Route::post('create', 'TableController@storeNew')->name('table.storeNew');
Route::get('logins', 'UserController@manageOauth')->name('user.manage-oauth');
});
});

Loading…
Cancel
Save