Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
42f36268
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
42f36268
编写于
6月 02, 2015
作者:
R
Robert Speicher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add 2FA docs
[ci skip]
上级
79aac2c1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
67 addition
and
1 deletion
+67
-1
doc/workflow/README.md
doc/workflow/README.md
+2
-1
doc/workflow/two_factor_authentication.md
doc/workflow/two_factor_authentication.md
+65
-0
未找到文件。
doc/workflow/README.md
浏览文件 @
42f36268
...
...
@@ -11,7 +11,8 @@
-
[
Migrating from SVN to GitLab
](
migrating_from_svn.md
)
-
[
Project importing from GitHub to GitLab
](
import_projects_from_github.md
)
-
[
Project importing from GitLab.com to your private GitLab instance
](
import_projects_from_gitlab_com.md
)
-
[
Two-factor Authentication (2FA)
](
two_factor_authentication.md
)
-
[
Protected branches
](
protected_branches.md
)
-
[
Change your time zone
](
timezone.md
)
-
[
Keyboard shortcuts
](
shortcuts.md
)
-
[
Web Editor
](
web_editor.md
)
\ No newline at end of file
-
[
Web Editor
](
web_editor.md
)
doc/workflow/two_factor_authentication.md
0 → 100644
浏览文件 @
42f36268
# Two-factor Authentication (2FA)
Two-factor Authentication (2FA) provides an additional level of security to your
GitLab account. Once enabled, in addition to supplying your username and
password to login, you'll be prompted for a code generated by an application on
your phone.
By enabling 2FA, the only way someone other than you can log into your account
is to know your username and password
*and*
have access to your phone.
## Enabling 2FA
**In GitLab:**
1.
Log in to your GitLab account.
1.
Go to your
**Profile Settings**
.
1.
Go to
**Acount**
.
1.
Click
**Enable Two-factor Authentication**
.
TODO: Insert screenshot of 2FA page (with the "Can't scan the code?" text)
**On your phone:**
1.
Install a compatible application. We recommend [Google Authenticator].
1.
In the application, add a new entry in one of two ways:
*
Scan the code with your phone's camera to add the entry automatically.
*
Enter the details provided to add the entry manually.
**In GitLab:**
1.
Enter the six-digit pin number from the entry on your phone into the
**
Pin
code
**
field.
1.
Click
**Submit**
.
If the pin you entered was correct, you'll see a message indicating that
Two-factor Authentication has been enabled, and you'll be presented with a list
of recovery codes.
## Recovery Codes
Should you ever lose access to your phone, you can use one of the ten provided
backup codes to login to your account. We suggest copying or printing them for
storage in a safe place.
**Each code can be used only once**
to log in to your
account.
If you lose the recovery codes or just want to generate new ones, you can do so
from the
**Profile Settings**
>
**Acount**
page where you first enabled 2FA.
## Logging in with 2FA Enabled
Logging in with 2FA enabled is only slightly different than a normal login.
Enter your username and password credentials as you normally would, and you'll
be presented with a second prompt for an authentication code. Enter the pin from
your phone's application or a recovery code to log in.
TODO: Insert screenshot of 2FA login prompt?
## Disabling 2FA
1.
Log in to your GitLab account.
1.
Go to your
**Profile Settings**
.
1.
Go to
**Acount**
.
1.
Click
**Disable Two-factor Authentication**
.
[
Google Authenticator
]:
https://support.google.com/accounts/answer/1066447?hl=en
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录