Commit b671fc05 by liyijie

valid! use 422 instead of 401

parent dd95a36d
...@@ -139,7 +139,7 @@ module RailsApiAuthentication ...@@ -139,7 +139,7 @@ module RailsApiAuthentication
end end
def valid! name, valid_code def valid! name, valid_code
raise(UserError.new(401, '-1', 'valid token is not correct')) unless valid?(name, valid_code) raise(UserError.new(422, '-1', 'valid token is not correct')) unless valid?(name, valid_code)
true true
end 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