# AccountController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Security/AccountController.cs` (line 28)

**Part of:** [Pams](subsystem-pams)

## Where it refuses work

- `AccountController` stops the work with an early return when `!ModelState.IsValid`, in 2 places.
- `AccountController` stops the work with an early return when `!result.Succeeded`, in 2 places.
- `AccountController` stops the work with an early return when `!verified`.

## When something fails

- `AccountController` handles failure in 2 places: it turns it into a return value in all 2.

## Relationships

- MODULE_DECLARES → `Register`
- MODULE_DECLARES → `Login`
- MODULE_DECLARES → `VerifyEmailOTP`
- IMPORTS → `ApplicationUserManager`
- IMPORTS → `Person`
- IMPORTS → `RegisterViewModel`
- IMPORTS → `LoginViewModel`

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### calls by (2)

- `EnahnceLoginResponse` — `Frontend/src/app/services/security/auth.service.ts`:1
- `PageData` — `Pams/Web/Pams.Web/Client/app/services/security/auth.service.ts`:1
