Formatting.
This commit is contained in:
parent
b372d2a824
commit
fc01bdaac9
|
@ -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.",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue