Compare commits
No commits in common. "01ca39da1771b1cc7ccb5f60054201e72bb1ef52" and "5f4ed6228f687ad660627427cbae172504f8d5f5" have entirely different histories.
01ca39da17
...
5f4ed6228f
@ -15,7 +15,7 @@ class HeaderAuth
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if (!hash_equals(config('bot.header_auth'), $request->header('X-BOTAUTH'))) {
|
||||
if (hash_equals(config('bot.header_auth'), $request->header('X-BOTAUTH'))) {
|
||||
return response('Unauthorized', 401);
|
||||
}
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@
|
||||
|
||||
return [
|
||||
'webhook' => env('BOT_SLACK_WEBHOOK_URL', ''),
|
||||
'header_auth' => env('BOT_X_BOTAUTH', ''),
|
||||
'header_auth' => env('BOT_SLACK_WEBHOOK_URL', ''),
|
||||
];
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
<x-app-layout>
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="p-6 text-nexi-black dark:text-gray-100">
|
||||
<livewire:pages.admin.send/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
@ -35,7 +35,7 @@
|
||||
<ul role="list" class="-mx-2 mt-2 space-y-1">
|
||||
<li>
|
||||
{{-- TODO: fill with SVG icons to make it pretty --}}
|
||||
<x-sidebar-nav :href="route('admin.send')" route="send">Send Quote</x-sidebar-nav>
|
||||
{{-- <x-sidebar-nav :href="route('a-1')" route="a-1">First Page</x-sidebar-nav>--}}
|
||||
</li>
|
||||
<li>
|
||||
{{-- TODO: fill with SVG icons to make it pretty --}}
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
<x-app-layout>
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="p-6 text-nexi-black dark:text-gray-100">
|
||||
{{ __("You're logged in!") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if(auth()->user()->is_admin)
|
||||
<livewire:pages.admin.send/>
|
||||
@endif
|
||||
</x-app-layout>
|
||||
|
||||
@ -25,10 +25,6 @@ Route::view('profile', 'profile')
|
||||
->middleware(['auth'])
|
||||
->name('profile');
|
||||
|
||||
Route::view('send', 'admin.send')
|
||||
->middleware(['auth'])
|
||||
->name('admin.send');
|
||||
|
||||
Route::middleware('guest')->group(function () {
|
||||
Volt::route('login', 'pages.auth.login')
|
||||
->name('login');
|
||||
|
||||
Reference in New Issue
Block a user