Skip to content

Commit

Permalink
Remove legacy mako-based login variation
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jan 10, 2019
1 parent 9926bbf commit e264c48
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions client/galaxy/scripts/entry/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ import Login from "components/login/Login.vue";
import Password from "components/login/Password.vue";
import Vue from "vue";

export function showOrRedirect(Galaxy, { options }) {
console.log("showOrRedirect");

if (!options.show_welcome_with_login) {
let appRoot = getAppRoot();
let destination = options.redirect ? options.redirect : appRoot;
let params = $.param({
use_panels: "True",
redirect: encodeURI(destination)
});
window.location.href = `${appRoot}user/login?${params}`;
}
}

export function initLoginView(Galaxy, { options }) {
console.log("initLoginView");
Galaxy.page = new Page.View(options);
Expand All @@ -30,6 +16,6 @@ export function initLoginView(Galaxy, { options }) {
new loginInstance({propsData: options}).$mount(vm);
}

addInitialization(showOrRedirect, initLoginView);
addInitialization(initLoginView);

window.addEventListener("load", () => standardInit("login"));

0 comments on commit e264c48

Please sign in to comment.