Skip to main content

PortalAuthController

Base path/api/portal/auth
ModuleInventory & Portal
Endpoints6
OpenAPI tagPortal Auth
Sourcebackend/src/main/java/com/motorph/payroll/controller/PortalAuthController.java

Endpoints​

MethodPathRequiresHandler
POST/api/portal/auth/registerPublic — no authenticationregister()
POST/api/portal/auth/verify-emailPublic — no authenticationverifyEmail()
POST/api/portal/auth/resend-verificationPublic — no authenticationresendVerification()
POST/api/portal/auth/loginPublic — no authenticationlogin()
POST/api/portal/auth/forgot-passwordPublic — no authenticationforgotPassword()
POST/api/portal/auth/reset-passwordPublic — no authenticationresetPassword()

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​

EntityTableTenant-scoped
PortalEmailVerificationTokenportal_email_verification_tokens—
PortalPasswordResetTokenportal_password_reset_tokens—
PortalUserportal_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/.