PortalAuthController
| Base path | /api/portal/auth |
| Module | Inventory & Portal |
| Endpoints | 6 |
| OpenAPI tag | Portal Auth |
| Source | backend/src/main/java/com/motorph/payroll/controller/PortalAuthController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
POST | /api/portal/auth/register | Public — no authentication | register() |
POST | /api/portal/auth/verify-email | Public — no authentication | verifyEmail() |
POST | /api/portal/auth/resend-verification | Public — no authentication | resendVerification() |
POST | /api/portal/auth/login | Public — no authentication | login() |
POST | /api/portal/auth/forgot-password | Public — no authentication | forgotPassword() |
POST | /api/portal/auth/reset-password | Public — no authentication | resetPassword() |
Notes
POST /api/portal/auth/register— Starts a sign-up: the account can't sign in until its owner clicks the link we email.POST /api/portal/auth/verify-email— Redeems the emailed link: confirms the address and signs the customer in.POST /api/portal/auth/resend-verification— Sends a new confirmation link if the address has an unconfirmed account; same answer either way.POST /api/portal/auth/forgot-password— Same answer whether or not the account exists, so the endpoint can't be used to find customers.POST /api/portal/auth/reset-password— 400 when the link is invalid, expired or already used.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: PortalAuthServiceImpl, PortalPasswordResetService, PortalEmailVerificationService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| PortalEmailVerificationToken | portal_email_verification_tokens | — |
| PortalPasswordResetToken | portal_password_reset_tokens | — |
| PortalUser | portal_user | — |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.