diff options
author | Joar Wandborg <joar@wandborg.se> | 2013-03-02 23:40:24 +0100 |
---|---|---|
committer | Joar Wandborg <joar@wandborg.se> | 2013-03-02 23:42:03 +0100 |
commit | 77c85224b139a123e7895588af51b6cd4ecaa2b9 (patch) | |
tree | 379c94316976df5527d06f7e35b3dfd8989aea87 /mediagoblin | |
parent | 56c113c77005a889834f43fb13549d531f391be4 (diff) | |
download | mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.tar.lz mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.tar.xz mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.zip |
Fixed hidden fields in oauth client authorization
Removed the translation marking and passed in empty strings to avoid
WTForms automagically creating the labels from the field names (i.e.
client_id => 'Client Id').
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/plugins/oauth/forms.py | 7 | ||||
-rw-r--r-- | mediagoblin/plugins/oauth/templates/oauth/authorize.html | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/mediagoblin/plugins/oauth/forms.py b/mediagoblin/plugins/oauth/forms.py index 2a956dad..d0a4e9b8 100644 --- a/mediagoblin/plugins/oauth/forms.py +++ b/mediagoblin/plugins/oauth/forms.py @@ -23,10 +23,9 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _ class AuthorizationForm(wtforms.Form): - client_id = wtforms.HiddenField(_(u'Client ID'), - [wtforms.validators.Required()]) - next = wtforms.HiddenField(_(u'Next URL'), - [wtforms.validators.Required()]) + client_id = wtforms.HiddenField(u'', + validators=[wtforms.validators.Required()]) + next = wtforms.HiddenField(u'', validators=[wtforms.validators.Required()]) allow = wtforms.SubmitField(_(u'Allow')) deny = wtforms.SubmitField(_(u'Deny')) diff --git a/mediagoblin/plugins/oauth/templates/oauth/authorize.html b/mediagoblin/plugins/oauth/templates/oauth/authorize.html index 647fa41f..8a00c925 100644 --- a/mediagoblin/plugins/oauth/templates/oauth/authorize.html +++ b/mediagoblin/plugins/oauth/templates/oauth/authorize.html @@ -16,7 +16,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -#} {% extends "mediagoblin/base.html" %} -{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} +{% import "mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_content %} <form action="{{ request.urlgen('mediagoblin.plugins.oauth.authorize_client') }}" |