We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba27e63 commit c1679baCopy full SHA for c1679ba
2 files changed
components/account/register.htm
@@ -1,7 +1,8 @@
1
{% if canRegister %}
2
<h3>Register</h3>
3
- <form
4
- data-request="onRegister">
+
+ {{ form_ajax('onRegister') }}
5
6
<div class="form-group">
7
<label for="registerName">Full Name</label>
8
<input
@@ -45,7 +46,8 @@ <h3>Register</h3>
45
46
</div>
47
48
<button type="submit" class="btn btn-default">Register</button>
- </form>
49
50
+ {{ form_close() }}
51
{% else %}
52
<!-- Registration is disabled. -->
53
{% endif %}
components/account/signin.htm
@@ -1,5 +1,5 @@
-<form
- data-request="onSignin">
+{{ form_ajax('onSignin') }}
<label for="userSigninLogin">{{ loginAttributeLabel }}</label>
@@ -21,4 +21,5 @@
21
22
23
<button type="submit" class="btn btn-default">Sign in</button>
24
-</form>
25
+{{ form_close() }}
0 commit comments