diff options
author | Robin Bobbitt <ryehle@us.ibm.com> | 2017-06-07 15:49:45 -0400 |
---|---|---|
committer | Robin Bobbitt <ryehle@us.ibm.com> | 2017-06-07 21:12:51 -0400 |
commit | cb5a5eb89265f7261ecc97b6de5bd26ca092960c (patch) | |
tree | 311b3d74e10c8da8cf9c89b5c6684071d932750f /app/controllers/jwt_controller.rb | |
parent | 359a8f1fc8df543e648b734acd332374bd779347 (diff) | |
download | gitlab-ce-cb5a5eb89265f7261ecc97b6de5bd26ca092960c.tar.gz |
Instruct user to use a personal access token for Git over HTTP
If internal auth is disabled and LDAP is not configured on the instance,
present the user with a message to create a personal access token if his
Git over HTTP auth attempt fails.
Diffstat (limited to 'app/controllers/jwt_controller.rb')
-rw-r--r-- | app/controllers/jwt_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/jwt_controller.rb b/app/controllers/jwt_controller.rb index c585d26df77..11db164b3fa 100644 --- a/app/controllers/jwt_controller.rb +++ b/app/controllers/jwt_controller.rb @@ -39,7 +39,7 @@ class JwtController < ApplicationController errors: [ { code: 'UNAUTHORIZED', message: "HTTP Basic: Access denied\n" \ - "You have 2FA enabled, please use a personal access token for Git over HTTP.\n" \ + "You must use a personal access token with 'api' scope for Git over HTTP.\n" \ "You can generate one at #{profile_personal_access_tokens_url}" } ] }, status: 401 |