change InvalidCredentialsError message

parent 0dbe8225
......@@ -4,7 +4,7 @@ module Dspace
resources do
default_handler(400) { raise InvalidTokenError, 'Invalid access token.' }
default_handler(403) { raise InvalidCredentialsError, 'Invalid access token.' }
default_handler(403) { raise InvalidCredentialsError, 'Wrong Dspace credentials.' }
action :login, 'POST /rest/login' do
body { |email, password| JSON.generate({email: email, password: password}) }
......@@ -19,4 +19,4 @@ module Dspace
end
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment