> For the complete documentation index, see [llms.txt](https://wiki.onfa.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.onfa.io/vn/tai-khoan/xac-thuc-qua-google.md).

# Xác thực qua Google

Tăng cường bảo mật - Bảo vệ tài sản

> **🔒 Tại sao nên bật 2FA?**
>
> * Tăng cường bảo mật tài khoản ONFA của bạn
> * Ngăn chặn truy cập trái phép dù lộ mật khẩu
> * Bắt buộc nhập mã OTP từ ứng dụng mỗi khi đăng nhập

## A. Cách Thiết Lập 2FA

1. **Cài đặt ứng dụng xác thực**

* Tải **Google Authenticator** từ:
  * [App Store](https://apps.apple.com/app/google-authenticator/id388497605) (iOS)
  * [Google Play](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2) (Android)
* Mở ứng dụng → Chọn **"+"** → Chọn **"Quét mã QR"** hoặc **"Nhập mã thiết lập"**

2. Đăng nhập ONFA → Vào **"Xác thực qua Google (2FA)"**
3. Quét **mã QR** hiển thị trên màn hình ONFA bằng ứng dụng Authenticator\
   *(Hoặc nhập thủ công mã cung cấp nếu không quét được)*

<figure><img src="https://2278184461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHVUlozWTsEZi0p2AOyyB%2Fuploads%2Fh5cKDbrWLeHjwdpP1qJ5%2F2025-06-20_15-18-31.png?alt=media&amp;token=a6a88ebb-c4de-4bc6-a906-631cc86494c1" alt="" width="375"><figcaption></figcaption></figure>

4. **Lấy mã xác thực**

* Ứng dụng sẽ hiện **mã 6 số** (thay đổi mỗi 30 giây)
* Nhập mã này vào ô **"Mã xác thực Google"** trên ONFA

<figure><img src="https://2278184461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHVUlozWTsEZi0p2AOyyB%2Fuploads%2FgJwMxYWzfKAOlVSgSCnD%2F2025-06-20_15-24-52.png?alt=media&amp;token=3caa1f29-0ff6-4330-8ec4-f66b0c4d1eb9" alt=""><figcaption></figcaption></figure>

5. Nhấn **"Bật xác thực 2 yếu tố"** để hoàn tất

<figure><img src="https://2278184461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHVUlozWTsEZi0p2AOyyB%2Fuploads%2F9fY595fa0teeUmsUOapg%2F2025-06-20_15-25-46.png?alt=media&amp;token=5fa69b9e-c953-495a-aa4a-4d587e83c11c" alt="" width="237"><figcaption></figcaption></figure>

> #### **⚠️ LƯU Ý QUAN TRỌNG**
>
> * Mã 2FA **chỉ có hiệu lực trong 30 giây** - nhập nhanh để tránh lỗi
> * Nếu mã hết hạn, đợi mã mới xuất hiện trên ứng dụng
> * **Lưu mã dự phòng** (backup code) ở nơi an toàn phòng khi mất thiết bị
> * Không chia sẻ mã 2FA với bất kỳ ai


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.onfa.io/vn/tai-khoan/xac-thuc-qua-google.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
