# Security **Profile → Security** (`/profile/security`) manages two independent controls: the second factor at sign-in and locking an already open application. Change the password on the [profile](/en/docs/profile) page. ## Second factor Two methods are supported: an email code and an authenticator app (TOTP). Viewing a method's tab does not activate it. The current method has an Active label. 1. To configure an authenticator, select its tab and start setup. 2. Scan the provided QR with a trusted authenticator app on your own device and enter its current six-digit code. 3. After successful confirmation the authenticator becomes the active method; the card shows it as connected. 4. To switch to a previously configured method, use its ordinary activation button. When replacing a device use the supported recovery/reconfiguration process after verifying your account. Never share setup QR codes, keys, passwords or one-time codes. If the card reports that two-factor protection is administratively disabled, its change actions are unavailable; contact the responsible administrator. The user does not select this administrative exception. ## Application lock This protects an open session, for example on an office computer, and does not replace the sign-in password or second factor. Enable the lock, choose a method (six-digit PIN or a previously confirmed authenticator), confirm setup and choose an inactivity timeout. UI choices are **5, 10, 15 or 30 minutes**. Timeout changes save immediately. Example: a dean's office employee enables PIN locking after five minutes of inactivity. When returning, they complete the normal PIN verification. In authenticator mode they use a current app code. This method is unavailable without a confirmed authenticator. Changing the PIN requires the current PIN, a new six-digit PIN and confirmation. If forgotten, use the supported recovery option on the lock screen with email verification; contact the responsible administrator if recovery is unavailable. Settings belong to the signed-in account, while lock state is tracked per session. Configuration changes require an unlocked session. ## Password and other devices Change the password in the [profile](/en/docs/profile) password tab: current password, new password and confirmation. Server requirements: at least eight characters, upper- and lower-case letters, numbers and symbols plus the known-compromise check. Do not reuse another service's password. Changing it is not equivalent to ending other sessions; use the separate [sessions](/en/docs/profile-sessions) page. ## Access and troubleshooting The route is available to authenticated users and changes only their own settings. There are no faculty/profession scopes. If TOTP confirmation fails, check the device clock and use a fresh code; if a PIN does not match, re-enter it carefully. For inaccessible email, lost devices or an administrative restriction contact the responsible administrator. Never hand verification data to other people. ## Implementation references - [ProfileSecurity.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Profile/components/ProfileSecurity/ProfileSecurity.tsx) - [LocalPasscode.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Profile/components/ProfileSecurity/LocalPasscode.tsx) - [service.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/features/appLock/service.ts) - [AppLock.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/features/appLock/AppLock.tsx) - [service.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Profile/service.ts) - [ProfileService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Authentication/Services/ProfileService.php) - [ChangePasswordRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Authentication/Http/Requests/Profile/ChangePasswordRequest.php) - [TwoFactorController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Authentication/Http/Controllers/Profile/TwoFactorController.php) - [AppLockController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Authentication/Http/Controllers/Profile/AppLockController.php) - [AppServiceProvider.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Providers/AppServiceProvider.php) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Authentication/routes/api.php)