Register, Login, and Logout

This commit is contained in:
2026-05-13 19:27:59 -04:00
parent f591bdffb5
commit 86f94b7bf3
23 changed files with 737 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
const Joi = require('joi');
const loginSchema = Joi.object().keys({
login_username: Joi.string().alphanum().min(3).max(24).required(),
login_password: Joi.string().min(8).max(256).required(),
}).unknown(true);
module.exports = {
test: (body) => {
return loginSchema.validate(body);
}
}