nfp_sites/app/login/logout.js

16 lines
270 B
JavaScript
Raw Normal View History

2019-02-20 16:10:37 +00:00
const m = require('mithril')
const Authentication = require('../authentication')
const Logout = {
oninit: function() {
2021-01-04 17:47:59 +00:00
Authentication.clearToken()
m.route.set('/')
2019-02-20 16:10:37 +00:00
},
view: function() {
return m('div.loading-spinner')
},
}
module.exports = Logout