Fixed logout link

This commit is contained in:
Julian Prieber 2023-12-09 20:50:18 +01:00
parent 88179004c5
commit a340b7b7b0
1 changed files with 9 additions and 1 deletions

View File

@ -89,7 +89,15 @@ if(Auth::user()->id !== $userinfo->id){
@endif
<span class="display-name">admin</span></a></li>
<li><a class="ab-item" href="{{ url('/studio/page') }}">Edit My Profile</a></li>
<li><a class="ab-item" href="{{ route('logout') }}">Log Out</a></li>
<li><a class="ab-item" onclick="submitForm()" style="cursor:pointer">Log Out</a></li>
<script>
function submitForm() {
document.getElementById('logoutForm').submit();
}
</script>
<form id="logoutForm" action="{{ route('logout') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
</form>
</ul>
</div>
</li>