diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-12 11:37:10 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-08-16 11:19:00 -0500 |
commit | f971026ad3aabcd682c42db6d35e35cb64121f40 (patch) | |
tree | 626a46b814ddf51a23226cb10a4aa2423b53c0b2 /app/controllers/projects/git_http_client_controller.rb | |
parent | 0f37721b6002bc5c7f2202479e7900a9bae4ce19 (diff) | |
download | gitlab-ce-f971026ad3aabcd682c42db6d35e35cb64121f40.tar.gz |
Added better information about the personal tokens
Diffstat (limited to 'app/controllers/projects/git_http_client_controller.rb')
-rw-r--r-- | app/controllers/projects/git_http_client_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/projects/git_http_client_controller.rb b/app/controllers/projects/git_http_client_controller.rb index e48403ca817..abe47f80858 100644 --- a/app/controllers/projects/git_http_client_controller.rb +++ b/app/controllers/projects/git_http_client_controller.rb @@ -94,7 +94,10 @@ class Projects::GitHttpClientController < Projects::ApplicationController def check_2fa(auth_type) if user && user.two_factor_enabled? && auth_type == :gitlab_or_ldap - render plain: "HTTP Basic: Access denied\nYou have 2FA enabled, please use a personal access token for Git over HTTP\n", status: 401 + render plain: "HTTP Basic: Access denied\n"\ + "You have 2FA enabled, please use a personal access token for Git over HTTP.\n"\ + "You can generate one at #{profile_personal_access_tokens_url}", + status: 401 end end |