1
0
Fork 0
mirror of synced 2024-08-24 14:31:44 +12:00
budibase/packages/server/middleware/controllers/auth.js

30 lines
608 B
JavaScript
Raw Normal View History

2020-04-08 07:34:21 +12:00
const couchdb = require("../../db");
const controller = {
forgotPassword: async ctx => {
},
setPassword: async ctx => {
},
changePassword: async ctx => {
},
authenticate: async ctx => {
// const user = await ctx.master.authenticate(
// ctx.sessionId,
// ctx.params.appname,
// ctx.request.body.username,
// ctx.request.body.password
// )
2020-04-08 07:34:21 +12:00
// if (!user) {
// ctx.throw(StatusCodes.UNAUTHORIZED, "invalid username or password")
// }
// ctx.body = user.user_json
// ctx.response.status = StatusCodes.OK
2020-04-08 07:34:21 +12:00
}
}
module.exports = controller;