Test
This commit is contained in:
parent
140b669bdb
commit
6fd3da0837
|
|
@ -22,6 +22,9 @@ async function va_register_client(req, res) {
|
|||
const created = await vaClientService.registerClient(payload);
|
||||
|
||||
logger.info(`ClientController - Client registered successfully: ${userDetails.email}`);
|
||||
await passwordResetService.requestPasswordReset(userDetails.email, 'client');
|
||||
logger.info(`Client password reset requested for: ${email}`);
|
||||
|
||||
return res.status(201).json({
|
||||
success: true,
|
||||
data: created,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,12 @@ async function va_log_track_work_callback(req, res) {
|
|||
|
||||
const vaId = vaUser._id;
|
||||
const payload = req.body || {};
|
||||
const { projectId, logId, title, appName, url = null } = payload;
|
||||
|
||||
let { projectId, logId, title, appName, url = null } = payload;
|
||||
|
||||
if (title === "") {
|
||||
title = ""
|
||||
}
|
||||
|
||||
const project = await ProjectModel.findById(projectId);
|
||||
if (!project) return res.status(400).json({ success: false, message: "Project not found" });
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@ clientRoutes.delete("/tips/:tipId", clientAuthValidator, va_tips_delete);
|
|||
// clientRoutes.get("/:clientID?", va_clients_callback); // VA Clients Callback for getting all VA's or specific client by ID (NC)
|
||||
clientRoutes.get("/:clientId/projects/:projectId", va_clients_projects_callback); // VA Clients Projects Callback (NC)
|
||||
|
||||
|
||||
|
||||
// dashboard API's
|
||||
clientRoutes.get("/dashboard", clientAuthValidator, client_dashboard); // VA Clients Projects Callback
|
||||
clientRoutes.post("/dashboard/va-report", clientAuthValidator, client_dashboard_va_log); // VA details
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@
|
|||
|
||||
<style>
|
||||
.void-btn-a {
|
||||
background: #394059;
|
||||
background: tomato;
|
||||
text-decoration: none;
|
||||
color: #2b8efc !important;
|
||||
color: #ffffff !important;
|
||||
border: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 5px;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@
|
|||
<input type="password" name="password" placeholder="Enter your password *" required />
|
||||
<a href="/forgot-password" class="forgot">Forgot password?</a>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Log in using password</button>
|
||||
<button type="submit" class="btn btn-primary">Log in using</button>
|
||||
|
||||
<!-- <div class="divider">OR</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue