Commit feb476d3 authored by Cole Erickson's avatar Cole Erickson
Browse files

CSS Fix + CAS Fix

parent cd7e9dbc
Pipeline #4159 passed with stage
in 1 minute and 52 seconds
......@@ -26,7 +26,12 @@ const loginRoute = (req, res, next)=>{
// Attempt to extract netID from CAS response, or throw error
let netID;
try{
netID = convertedResponse['cas:serviceResponse']['cas:authenticationSuccess'][0]['cas:attributes'][0]['cas:netId'][0];
if(convertedResponse['cas:serviceResponse']['cas:authenticationSuccess'][0]['cas:attributes'])
netID = convertedResponse['cas:serviceResponse']['cas:authenticationSuccess'][0]['cas:attributes'][0]['cas:netId'][0];
else if(convertedResponse['cas:serviceResponse']['cas:authenticationSuccess'][0]['cas:user'])
netID = convertedResponse['cas:serviceResponse']['cas:authenticationSuccess'][0]['cas:user'][0]
else
throw new Error('Could not get netID from CAS')
} catch (err){
// If that didn't work then attempt to extract CAS error from response
let casError;
......
html, body, div, span, applet, object, iframe, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; }
html, body, div, span, applet, object, iframe, blockquote, pre, a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; }
html, body, #root {
margin: 0;
......
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