Commit 820e379d authored by Jarod Owen's avatar Jarod Owen
Browse files

Merge branch 'loginProbs2' into 'master'

Potential fix to the disappearing logout button

See merge request !73
parents b185d377 11233484
Pipeline #11365 passed with stages
in 3 minutes and 50 seconds
......@@ -31,6 +31,9 @@ import constants from '../constants'
export default {
name: 'Home',
mounted: function () {
this.loggedIn()
},
data: function () {
return {
email: '',
......@@ -96,11 +99,11 @@ export default {
loggedIn () {
axios.get(constants.APIHOST + '/me')
.then(response => {
this.logIn = true
this.userOb = response.data.user
})
.catch(error => {
this.dummy = error
this.logIn = false
this.userOb = null
})
return true
}
......
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