mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Fix lining issue
This commit is contained in:
parent
5cf5b23c66
commit
efb4125181
@ -9,7 +9,7 @@ async function digestMessage(message) {
|
||||
return bufferToHex(hashBuffer);
|
||||
}
|
||||
|
||||
const hashAdminUserEmail = async (payload) => {
|
||||
export default async function hashAdminUserEmail(payload) {
|
||||
try {
|
||||
return await digestMessage(payload.email);
|
||||
} catch (error) {
|
||||
@ -18,6 +18,4 @@ const hashAdminUserEmail = async (payload) => {
|
||||
|
||||
return hash.sha256().update(payload.email).digest('hex');
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = hashAdminUserEmail;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user