Commit f80b76f6 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

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}) }
......
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