Skip to content

admin password fixes - #111

Merged
MohanEhab merged 1 commit into
developfrom
feature/ai-chatbot
May 3, 2026
Merged

admin password fixes#111
MohanEhab merged 1 commit into
developfrom
feature/ai-chatbot

Conversation

@MohanEhab

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 3, 2026 05:18
@MohanEhab
MohanEhab merged commit ab50475 into develop May 3, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR adds an authenticated endpoint for checking whether the current account has a local password configured.

Changes:

  • Added GET /auth/password/status to expose password status for the current user.
  • Added AuthService.getPasswordStatus(userId) to look up the user and return hasPassword.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/auth/controllers/auth.controller.ts Adds the new password-status controller endpoint and Swagger metadata.
src/auth/auth.service.ts Implements the user lookup and boolean password-status response.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/auth/auth.service.ts
Comment on lines +758 to +762
throw new UnauthorizedException({
statusCode: 401,
error: "NOT_AUTHENTICATED",
message: "User not found.",
});
Comment thread src/auth/auth.service.ts
Comment on lines +760 to +761
error: "NOT_AUTHENTICATED",
message: "User not found.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants