|
|
|
@ -299,7 +299,7 @@ fastify.get("/api/reset_token/:customerId", {
|
|
|
|
|
userId: get_user._id,
|
|
|
|
|
roles: get_user.profile.role,
|
|
|
|
|
},
|
|
|
|
|
{ expiresIn: "12h" }
|
|
|
|
|
{ expiresIn: "15d" }
|
|
|
|
|
);
|
|
|
|
|
reply.send({ access_token: token, customerId: get_user.customerId });
|
|
|
|
|
} catch (err) {
|
|
|
|
@ -316,6 +316,8 @@ fastify.get("/api/reset_token/:customerId", {
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get('/testtemp', (req, reply) => {
|
|
|
|
|
reply.view('layouts/main', {});
|
|
|
|
|
});
|
|
|
|
|