Cleaned up login code.

This commit is contained in:
Håvar Aambø Fosstveit
2019-10-24 10:10:22 +02:00
parent 5247bfe332
commit 7b65328789
2 changed files with 14 additions and 42 deletions
-16
View File
@@ -237,7 +237,6 @@ async function setupAuth(oidcIssuer)
{
passport.authenticate('oidc', {
state : base64.encode(JSON.stringify({
id : req.query.id,
roomId : req.query.roomId,
peerId : req.query.peerId
}))
@@ -283,21 +282,6 @@ async function setupAuth(oidcIssuer)
room.peerAuthenticated(state.peerId);
const socket = io.sockets.sockets[state.id];
if (socket)
{
socket.emit('notification',
{
method : 'auth',
data :
{
displayName : displayName,
picture : photo
}
});
}
res.send(httpHelper({
success : true,
displayName : displayName,