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 Member
V.I.P Member
Registered
Joined
Nov 13, 2018
Messages
4,636
Time online
8d 6h 26m
Points
523
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 9596View attachment 9597
Template modification for: register_form and login
Search type: Regular expression
Find...
Read more about this resource...
 

Shelby1989

Collaborate
Collaborate
Registered
Joined
Jun 7, 2019
Messages
30
Time online
16h 54m
Points
18
I edited all my themes manually and it works 😍. Thanks
 

hollywood1337

VIP Member
V.I.P Member
Registered
Joined
Dec 10, 2019
Messages
17
Time online
11h 38m
Points
3
What do I do if I have multiple of these Templates?

1578873736116.png
 

Shelby1989

Collaborate
Collaborate
Registered
Joined
Jun 7, 2019
Messages
30
Time online
16h 54m
Points
18
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
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock