37 lines
1.4 KiB
JavaScript
37 lines
1.4 KiB
JavaScript
module.exports =
|
|
{
|
|
// API'routes (after "apiUrl" defined in instance.js)
|
|
userRoutes: "/user",
|
|
subscribeRoute: "/signup",
|
|
getGodfatherRoute: "/getgodfatherid",
|
|
checkIfIsEmailfreeRoute: "/isemailfree",
|
|
checkSubscribeTokenRoute: "/validation/",
|
|
checkLoginRoute: "/checklogin/",
|
|
connectionRoute: "/login",
|
|
getLoginLinkRoute: "/getloginlink",
|
|
connectionWithLinkRoute: "/checkloginlink",
|
|
getUserInfos: "/get/",
|
|
createUserRoute: "/create",
|
|
validateUserRoute: "/validate/",
|
|
updateUserInfos: "/modify/",
|
|
searchUserRoute: "/search/",
|
|
getGodChilds: "/getgodchilds/",
|
|
checkNewLoginLinkRoute: "/confirmnewlogin/",
|
|
checkDeleteLinkRoute: "/confirmdelete/",
|
|
getPayments: "/payment/getforoneuser/",
|
|
unsubscribeRoute: "/subscription/stop/",
|
|
getAdminStats: "/getadminstats/",
|
|
// forms : à compléter avec valeurs par défaut, etc. cf modèle
|
|
name: { maxlength: 70, required: true },
|
|
email: { maxlength: 255, required: true },
|
|
password: { minlength: 8, maxlength:72, required: true }, // https://www.npmjs.com/package/bcrypt#security-issues-and-concerns
|
|
newPassword: { minlength: 8, maxlength:72 },
|
|
codeGodfather: { maxlength: 255 },
|
|
cguOk: { value: "true", required: true },
|
|
timeDifferenceMin: -720,
|
|
timeDifferenceMax:840,
|
|
// JSON dir
|
|
dirCacheUsers : "datas/users",
|
|
dirCacheUsersAnswers : "datas/users/questionnaires/answers"
|
|
};
|