Commit cb1b2425 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

js cleansed

parent 8341f9da
Pipeline #127 passed with stage
in 3 seconds
......@@ -14,8 +14,10 @@ function userAuthenticated(){
let params = new URLSearchParams(window.location.search);
if(params.get('isAuthenticatedUser')){
return true;
}else if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
return true;
}else if(document.getElementById('loginswitch')){
if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
return true;
}
}else{
return false;
}
......
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