Skip to content
Snippets Groups Projects
Commit 0ac798c0 authored by Gustav Elmqvist's avatar Gustav Elmqvist
Browse files

js part of homepage

parent 03fa1aca
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,14 @@ loadProfileView = function() {
loadWelcomeView();
}
})
var userData = serverstub.getUserDataByToken(localStorage.getItem('logintoken')).data
// Change the information displayed on the homepage to the user credentials
document.getElementById('home-username').innerText = userData.firstname + ' ' + userData.familyname;
document.getElementById('home-gender').innerText = userData.gender;
document.getElementById('home-location').innerText = userData.city + ', ' + userData.country;
document.getElementById('home-email').innerText = userData.email;
}
inputValidation = function(formID) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment