Issue:
feat(users): add support to check 2FA status

Add support to check whether the 2FA has been done recently or not. ( For now it will check for last five minutes)


Use case: The api will help to check for when was last TOTP done, if user has recently done sign in and trying to do some operation that asks for TOTP again from inside dashboard, we can ignore TOTP based on the result this api gives.

Resolution:
<think>
PR Context:
- Title: feat(users): add endpoint to check 2fa status
- Merged: 2024-05-29T13:45:12Z
- Files changed: 7 files
- Commits: 6 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
The api checks whether the 2FA has been done recently or not.
It just checks the status in Redis and gives the response.

### Additional Changes

- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(users): add endpoint to check 2fa status (#4810)
Files to modify:


**crates/api_models/src/events/user.rs**
  Modify existing code

**crates/api_models/src/user.rs**
  Add:
    - struct: pub::TwoFactorAuthStatusResponse

**crates/router/src/core/user.rs**
  Add:
    - function: pub::check_two_factor_auth_status

**crates/router/src/routes/app.rs**
  Modify existing code

**crates/router/src/routes/lock_utils.rs**
  Modify existing code

**crates/router/src/routes/user.rs**
  Add:
    - function: pub::check_two_factor_auth_status

**crates/router_env/src/logger/types.rs**
  Modify existing code