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').
This commit is contained in:
parent
56c113c770
commit
77c85224b1
@ -23,10 +23,9 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _
|
|||||||
|
|
||||||
|
|
||||||
class AuthorizationForm(wtforms.Form):
|
class AuthorizationForm(wtforms.Form):
|
||||||
client_id = wtforms.HiddenField(_(u'Client ID'),
|
client_id = wtforms.HiddenField(u'',
|
||||||
[wtforms.validators.Required()])
|
validators=[wtforms.validators.Required()])
|
||||||
next = wtforms.HiddenField(_(u'Next URL'),
|
next = wtforms.HiddenField(u'', validators=[wtforms.validators.Required()])
|
||||||
[wtforms.validators.Required()])
|
|
||||||
allow = wtforms.SubmitField(_(u'Allow'))
|
allow = wtforms.SubmitField(_(u'Allow'))
|
||||||
deny = wtforms.SubmitField(_(u'Deny'))
|
deny = wtforms.SubmitField(_(u'Deny'))
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-#}
|
-#}
|
||||||
{% extends "mediagoblin/base.html" %}
|
{% extends "mediagoblin/base.html" %}
|
||||||
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
{% import "mediagoblin/utils/wtforms.html" as wtforms_util %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
<form action="{{ request.urlgen('mediagoblin.plugins.oauth.authorize_client') }}"
|
<form action="{{ request.urlgen('mediagoblin.plugins.oauth.authorize_client') }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user