mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Add isDevelopmentEnvironment check to /login api
This commit is contained in:
@@ -62,9 +62,12 @@ const getRandomId = () => {
|
||||
return 'a' + randomstring.generate(16)
|
||||
}
|
||||
|
||||
const isDevelopmentEnvironment = () => process.env.NODE_ENV === 'development'
|
||||
|
||||
module.exports = {
|
||||
emailTypeToTemplateName,
|
||||
templateNameToEmailType,
|
||||
pipe,
|
||||
getRandomId
|
||||
getRandomId,
|
||||
isDevelopmentEnvironment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user