1 module.exports = BackstageLoginComponent;
3 var m = require('mithril');
5 function BackstageLoginComponent() {
7 callback.controller = function() {
10 tokens = JSON.parse(window.localStorage.tokens);
12 tokens[m.route.param('apiPrefix')] = m.route.param('api_token');
13 window.localStorage.tokens = JSON.stringify(tokens);
14 m.route(m.route.param('return_to') || '/');
16 callback.view = function(ctrl) {}