Commit a2b25760 authored by Lukas Burgey's avatar Lukas Burgey

Fix logging of 'No IdP' upon successful login

parent 5e2aaa29
......@@ -307,18 +307,22 @@ export class UserService {
window.location.href = '/?idp=' + encodeURIComponent(arg.issuer_uri);
};
// was there an argument?
if (idp !== undefined) {
this.prefs.setPreferredIdP(idp);
redirect(idp);
} else {
return;
}
// is the a preference?
this.prefs.connect().subscribe(
prefs => {
if (prefs.preferredIdP !== undefined) {
redirect(prefs.preferredIdP);
return;
}
}
);
}
console.log('Unable to login: No IdP');
}
......
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