Formatting.

This commit is contained in:
mike12345567 2021-05-05 12:11:31 +01:00
parent b372d2a824
commit fc01bdaac9
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 // don't throw any kind of error to the user, this might give away something
} }
ctx.body = { 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 const EXPIRE_TOKEN_SECONDS = 3600
async function getClient(db) { async function getClient(db) {
return await (new Client(db)).init() return await new Client(db).init()
} }
async function writeACode(db, value) { async function writeACode(db, value) {
@ -48,4 +48,4 @@ exports.checkResetPasswordCode = async (resetCode, deleteCode = false) => {
*/ */
exports.getInviteCode = async email => { exports.getInviteCode = async email => {
return writeACode(utils.Databases.INVITATIONS, email) return writeACode(utils.Databases.INVITATIONS, email)
} }

View File

@ -1,6 +1,11 @@
const CouchDB = require("../db") const CouchDB = require("../db")
const { getConfigParams, StaticDatabases } = require("@budibase/auth").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 { checkSlashesInUrl } = require("./index")
const env = require("../environment") const env = require("../environment")