Merge branch 'issue-6' into 'develop'
fix nonce script - issue #6 See merge request ldc-web/projets/crm!9
This commit is contained in:
commit
8b1ec125cc
2 changed files with 3 additions and 5 deletions
|
|
@ -31,7 +31,7 @@
|
|||
<!-- Other -->
|
||||
@include('modules.script-constants')
|
||||
@include('modules.script-routes')
|
||||
<script src="{{ mix('js/back.js', 'build') }}"></script>
|
||||
<script @if(isset($nonce)) nonce="{{ $nonce }}" @endif src="{{ mix('js/back.js', 'build') }}"></script>
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -42,11 +42,9 @@
|
|||
]) }}</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
|
||||
<li>
|
||||
<a class="dropdown-item" href="{{ route('logout') }}"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('logout-form').submit();">{{ __('Déconnexion') }}</a>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST">
|
||||
@csrf
|
||||
<button class="dropdown-item" type="submit" href="{{ route('logout') }}">{{ __('Déconnexion') }}</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue