mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Move function to a more logical location
This commit is contained in:
@ -45,6 +45,14 @@ const AccountInterface = {
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get current user email address
|
||||
*/
|
||||
getMail: async function() {
|
||||
const res = await api("account/mail", null, true);
|
||||
return res.mail;
|
||||
},
|
||||
|
||||
/**
|
||||
* Check whether the security questions have been set for an account
|
||||
* with an email address or not
|
||||
|
Reference in New Issue
Block a user