"...moodle-assignsubmission_dta.git" did not exist on "cee505a211065d2b544823e8e09634ab30ca05fe"
Commit a8dec53a authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

user profile changes reverted

3 merge requests!32Prepare production,!29Mlab 197,!6Contact mailinglist assets
Pipeline #368 passed with stage
in 4 seconds
Showing with 0 additions and 22 deletions
+0 -22
......@@ -23,27 +23,6 @@ function userAuthenticated(){
}
}
var user = false;
function profileExistsSetLogin(){
$.get( "/api/v1/profile", function(data) {
let email = data.email
if(email != ''){
user = true;
document.getElementById("navbarDropdown4").innerHTML="Logout";
document.getElementById("navbarDropdown4").href="/account/logout";
}
})
.done(function() {
console.log("done fetching profile info");
})
.fail(function() {
console.log( "error fetching profile info" );
})
return user;
}
function readCookie(cname) {
var name = cname + "=";
......@@ -157,7 +136,6 @@ function head(){
headitem.appendChild(headlink);
navelements.appendChild(headitem);
}
profileExistsSetLogin() //user has priority
let searchitem = document.createElement('li');
searchitem.classList.add("nav-item");
let searchinput = document.createElement('input');
......
Supports Markdown
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