1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Formatting.

This commit is contained in:
mike12345567 2021-05-05 12:11:31 +01:00
parent e31eb5d3d2
commit f781e8b350
3 changed files with 9 additions and 4 deletions

View file

@ -55,7 +55,7 @@ exports.reset = async ctx => {
// don't throw any kind of error to the user, this might give away something
}
ctx.body = {
message: "If user exists an email has been sent."
message: "If user exists an email has been sent.",
}
}

View file

@ -4,7 +4,7 @@ const { newid } = require("@budibase/auth").utils
const EXPIRE_TOKEN_SECONDS = 3600
async function getClient(db) {
return await (new Client(db)).init()
return await new Client(db).init()
}
async function writeACode(db, value) {
@ -48,4 +48,4 @@ exports.checkResetPasswordCode = async (resetCode, deleteCode = false) => {
*/
exports.getInviteCode = async email => {
return writeACode(utils.Databases.INVITATIONS, email)
}
}

View file

@ -1,6 +1,11 @@
const CouchDB = require("../db")
const { getConfigParams, StaticDatabases } = require("@budibase/auth").db
const { Configs, TemplateBindings, LOGO_URL, EmailTemplatePurpose } = require("../constants")
const {
Configs,
TemplateBindings,
LOGO_URL,
EmailTemplatePurpose,
} = require("../constants")
const { checkSlashesInUrl } = require("./index")
const env = require("../environment")