I want to require user to register with Facebook account. But in my country, sometimes Facebook is blocked.
I've try to add password field register_connected_account template so that user can login by Username or Facebook:
I added
before:
and this is my error:
Template errors
Thanks so much!
I've try to add password field register_connected_account template so that user can login by Username or Facebook:
I added
Code:
<xf:comment>Spam catcher field</xf:comment>
<xf:if is="{{ rand(0, 2) == 1 }}">
<xf:textboxrow name="password" type="password" autocomplete="off" rowclass="formRow--limited"
label="{{ phrase('password') }}"
explain="{{ phrase('please_leave_this_field_blank') }}" />
</xf:if>
<xf:textboxrow name="{{ $regForm.getFieldName('password') }}" type="password" autocomplete="off"
label="{{ phrase('password') }}" />
Code:
<xf:if is="!$providerData.dob">
<xf:macro template="register_macros" name="dob_row" />
</xf:if>
and this is my error:
Template errors
- Template public:register_connected_account: Cannot call method getFieldName on a non-object (NULL) (src/XF/Template/Templater.php:907
Thanks so much!