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:
parent
bfd11bf79a
commit
a9f4549327
6 changed files with 23 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue