Load mail address to change password in settings

This commit is contained in:
2021-02-17 18:35:28 +01:00
parent 5e76b2b3f6
commit 5dfe327f8c
2 changed files with 18 additions and 2 deletions

View File

@ -31,6 +31,14 @@ const SettingsInterface = {
ComunicWeb.common.api.makeAPIrequest(apiURI, settings, true, callback);
},
/**
* Get current user email address
*/
getMail: async function() {
const res = await api("account/mail", null, true);
return res.mail;
},
/**
* Check the availability of the virtual directory for user
*