Created
January 9, 2021 14:09
-
-
Save tux86/4f3d6079faae7e2ff5fb4a9fe5a06a62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generateUserName = (tenantId, email) => { | |
if (!tenantId || !email) { | |
return null; | |
} | |
return md5( | |
[ | |
tenantId, | |
].join().trim().toLowerCase() | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment