summaryrefslogtreecommitdiff
path: root/app/controllers/jwt_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-10-12 11:27:16 +0200
committerDouwe Maan <douwe@selenight.nl>2017-11-02 11:39:02 +0100
commita1781a49416790f727b3dd3453bf704723e72b90 (patch)
treeeadb46a721f1ab3c470323239f1cd957d3f9ccbd /app/controllers/jwt_controller.rb
parent668183d479ec09bce156c937be1ee400c52c2c2f (diff)
downloadgitlab-ce-a1781a49416790f727b3dd3453bf704723e72b90.tar.gz
Consistently use PersonalAccessToken instead of PersonalToken
Diffstat (limited to 'app/controllers/jwt_controller.rb')
-rw-r--r--app/controllers/jwt_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/jwt_controller.rb b/app/controllers/jwt_controller.rb
index 4bceb1d67a3..7d6fe6a0232 100644
--- a/app/controllers/jwt_controller.rb
+++ b/app/controllers/jwt_controller.rb
@@ -30,11 +30,11 @@ class JwtController < ApplicationController
render_unauthorized
end
end
- rescue Gitlab::Auth::MissingPersonalTokenError
- render_missing_personal_token
+ rescue Gitlab::Auth::MissingPersonalAccessTokenError
+ render_missing_personal_access_token
end
- def render_missing_personal_token
+ def render_missing_personal_access_token
render json: {
errors: [
{ code: 'UNAUTHORIZED',