Resource icon

XF 2 Tip Removing registration and login using connected accounts

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,131
Points
823

Reputation:

ENXF NET submitted a new resource:

Removing registration and login using connected accounts - Removing registration and login using connected accounts

A way to remove the ability for users to register and log in using connected accounts, but without actually just removing those providers in ACP

Users to be able to connect their accounts to all the registered providers but only after they have successfully registered/logged in using the standard method (username/email)
View attachment 9596 View attachment 9597
Template modification for: register_form and login
Search type: Regular expression
Find...

Read more about this resource...
 

hollywood1337

Well-known member
Registered
Joined
Dec 10, 2019
Messages
51
Points
28

Reputation:

What do I do if I have multiple of these Templates?

1578873736116.png
 

Shelby1989

Collaborate
Collaborate
Registered
Joined
Jun 7, 2019
Messages
31
Points
18

Reputation:

go to Appearance > Style > StyleName (Templates).
then type "login" in search field.
1578937131612.png


click on it and read code manually. find
Code:
<xf:if is="$providers is not empty">
    <div class="block">
        <div class="block-container">
            <div class="block-body">
                <xf:formrow rowtype="button"
                    label="{{ phrase('register_faster_using') }}">

                    <ul class="listHeap">
                        <xf:foreach loop="$providers" value="$provider">
                            <li>
                                <xf:macro template="connected_account_macros" name="button"
                                    arg-provider="{$provider}" />
                            </li>
                        </xf:foreach>
                    </ul>
                </xf:formrow>
            </div>
        </div>
    </div>
</xf:if>

and delete above text from it.

Do same for "register_form".

DONE :)
 
Top