Display image after user logged in with CORDOVA

1

I'm developing an app with CORDOVA and the goal is to show the user's profile image when logged in via ajax, I ran some tests and I got here:

$("#email").html(localStorage.email);
var imageUser="https://source.unsplash.com/random/700x300"+md5(localStorage.email);
$("#profile").attr('src',imageUser);

It works after login, but I'm not sure, insert the bank image into the variable. Thanks guys.

    
asked by anonymous 22.12.2018 / 14:00

0 answers