Tidy up the OAuth authorization screens

Make sure all messages are translatable, separate errors from
user initiated denial of authorization.
This commit is contained in:
Tom Hughes 2013-11-30 12:16:44 +00:00
parent bfd11bf79a
commit a9f4549327
6 changed files with 23 additions and 7 deletions

View file

@ -67,10 +67,12 @@ protected
end
else
@token.invalidate!
@message = t("oauth.oauthorize_failure.denied", :app_name => @token.client_application.name)
render :action => "authorize_failure"
end
end
else
@message = t "oauth.oauthorize_failure.invalid"
render :action => "authorize_failure"
end
end