Skip to content

Commit 8d59d78

Browse files
committed
Update html sample in doc
Following #376
1 parent a67c26e commit 8d59d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/extending_the_authorization_page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ you will see a `client` variable which is passed to the templating engine. That
1919
``` html+jinja
2020
<h2>The application "{{ client.name }}" would like to connect to your account</h2>
2121
22-
<form action="{{ path('fos_oauth_server_authorize') }}" method="POST" class="fos_oauth_server_authorize" {{ form_enctype(form) }}>
22+
{{ form_start(form, {'method': 'POST', 'action': path('fos_oauth_server_authorize'), 'label_attr': {'class': 'fos_oauth_server_authorize'} }) }}
2323
<input class="btn" type="submit" name="rejected" value="{{ 'authorize.reject'|trans({}, 'FOSOAuthServerBundle') }}" />
2424
<input class="btn btn-primary" type="submit" name="accepted" value="{{ 'authorize.accept'|trans({}, 'FOSOAuthServerBundle') }}" />
2525

0 commit comments

Comments
 (0)