Commit d35b24ec authored by Clément's avatar Clément

bugfix: redirection after signin

parent 92769141
......@@ -29,9 +29,13 @@ sib.oidc._getUser = function() {
.then(function(user) {
if (user == null) {
sib.oidc._manager.signinRedirectCallback()
.then()
.then(message => {
location.href = message.state
})
.catch(function(error) {
sib.oidc._manager.signinRedirect({state: "dummy data"})
sib.oidc._manager.signinRedirect({
state: location.href,
})
.then()
.catch(function(error) {
console.log(error);
......
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