Commit 38be1ed3 authored by Curtis Adam's avatar Curtis Adam

Fix redirect bug for cas login

parent 3447e2ff
......@@ -81,12 +81,7 @@ Meteor.loginWithCas = function(options, callback) {
// check auth on server.
Accounts.callLoginMethod({
methodArguments: [{ cas: { credentialToken: credentialToken } }],
userCallback: err => {
// Fix redirect bug after login successfully
if (!err) {
window.location.href = '/';
}
}
userCallback: callback
});
}
}, 100);
......
Markdown is supported
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