InfraGuard

My Profile

View your own account details and change your password yourself — a self-service page.

Overview — what it does

My Profile (/me) shows the details of the account you are currently signed in as, and lets you change your own password as a self-service action. Open it any time from the user dropdown at the top-right of the header. Every authenticated user can reach it — there is no extra level gate.

The only thing you can change here is your password. Your level (user_level), role, and team are assigned by an administrator in Users & Teams; here they appear as read-only badges.

Password verification and changes are securely saved using the current standard hash — see Login & auth.

When to use

Layout

The page is two cards.

1) Account info card (read-only)

At the top is an avatar (name initials + a fixed color derived from your name), your name and login ID, and a row of badges below.

Field Meaning Source
Name / Login ID Display name and @login_id users.name · users.login_id
Level badge Demo / Staff / Admin (numeric level shown too) users.user_level
Role badge Informational role label (only if set) users.role_id → infr_role
Team badge Team membership (only if set) users.team_id → infr_team
Email Account email users.email
Contact Phone / mobile users.hp
Last login YYYY-MM-DD HH:MM users.last_log

The color tone of the level badge is chosen automatically from your level.

Level (value) Label Badge tone
1 Demo muted (grey)
5 Staff accent (highlight)
10 Admin crit (red)

The avatar initials and color are computed from your name. Korean/CJK names use the first character; other names combine leading letters, and the hue is fixed as crc32(name) % 360 — so the same name always shows the same color everywhere.

2) Change password card

Three inputs and a Change password button:

As the hint says, changing the password keeps your session — you are not logged out and do not need to sign in again.

How to use

Change your password

  1. Open the user dropdown at the top-right → My Profile (see Navigation).
  2. Enter your current password.
  3. Enter the new password (4+ characters) and the confirmation identically.
  4. Click Change password. On success the inputs clear and a "Password changed." toast appears.

Under the hood the browser sends:

POST /me/password
Content-Type: application/json
X-CSRF-TOKEN: <session token>

{ "current": "OLD_PASSWORD", "password": "NEW_PASSWORD", "password_confirmation": "NEW_PASSWORD" }

A success response is { "ok": true }; on failure { "ok": false, "errors": { ... } } carries per-field errors.

Server validation rules

Rule Condition On violation
current required 422
password required · min 4 · max 120 · confirmed (matches confirmation) 422
Current-password match compared against the stored hash via Hash::check 422 "Current password does not match."

A mismatch between the new password and its confirmation is caught in the browser first and shown immediately ("New passwords do not match.") before anything is sent to the server.

Data sources

Access

Troubleshooting & FAQ

Q. It says "Current password does not match." Double-check you typed the current password exactly, and use the same password you sign in with.

Q. What is the minimum length? The server accepts 4–120 characters. A stronger password is recommended by policy.

Q. Do I have to log in again after changing it? No. Your session is kept, so you are not logged out.

Q. I want to change my email, contact, or name. Those cannot be changed here. Ask an administrator to edit them in Users & Teams.

Q. How do I change my display language? Language is switched from the header language switcher — see Localization & language.

Related

The profile screen
The profile screen