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(){ ...@@ -14,8 +14,10 @@ function userAuthenticated(){
let params = new URLSearchParams(window.location.search); let params = new URLSearchParams(window.location.search);
if(params.get('isAuthenticatedUser')){ if(params.get('isAuthenticatedUser')){
return true; return true;
}else if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){ }else if(document.getElementById('loginswitch')){
if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
return true; return true;
}
}else{ }else{
return false; 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