Commit f3c522d5 authored by Ciarán Ainsworth's avatar Ciarán Ainsworth
Browse files

Add support for unauthenticated users hitting the logout page

parent 15369155
Pipeline #11406 passed with stages
in 4 minutes and 52 seconds
Add support for unauthenticated users hitting the logout page
\ No newline at end of file
<main class="main pusher" v-title="labels.title">
<section class="ui vertical stripe segment">
<div class="ui small text container">
<div v-if="$store.state.auth.authenticated" class="ui small text container">
<translate translate-context="Content/Login/Title">Are you sure you want to log out?</translate>
<p v-translate="{username: $store.state.auth.username}" translate-context="Content/Login/Paragraph">You are currently logged in as %{ username }</p>
<button class="ui button" @click="$store.dispatch('auth/logout')"><translate translate-context="Content/Login/Button.Label">Yes, log me out!</translate></button>
<div v-else class="ui small text container">
<translate translate-context="Content/Login/Title">You aren't currently logged in</translate>
<router-link to='/login' class="ui button"><translate translate-context="Content/Login/Button.Label">Log in!</translate></router-link>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment