Automatic connection after registration

+4
Fibo
YoshiGM
TonnyKamper
MattiaDes
8 posters

Go down

Do you agree or disagree ?

Automatic connection after registration Left1181%Automatic connection after registration Right11 81% 
[ 13 ]
Automatic connection after registration Left1119%Automatic connection after registration Right11 19% 
[ 3 ]
 
Total Votes : 16
 

Automatic connection after registration Empty Automatic connection after registration

Post by MattiaDes January 8th 2021, 6:01 pm

In all forums happens that several users register without ever connecting.

It would be nice if after registration the user was automatically logged in, without having to manually enter the data that he has already specified during the registration.

The automatic connection should obviously only take place if the activation of the account after registration was direct (without having to confirm by email or via an administrator).

I used this code to do this in the past, but it's not very safe. It would be better if it was native on all forums:

Code:
jQuery(document)["ready"](function() {
    if (_userdata["session_logged_in"] === 0) {
        jQuery("#ucp input[name="submit"]")["on"]("click", function() {
            var variable_0 = document["getElementById"]("username_reg")["value"];
            var variable_1 = document["getElementById"]("password_reg")["value"];
            localStorage["setItem"]("textuser", variable_0);
            localStorage["setItem"]("textpass", variable_1)
        });
        jQuery(window)["load"](function() {
            storedValueUser = localStorage["getItem"]("textuser");
            storedValuePass = localStorage["getItem"]("textpass");
            if (storedValueUser && storedValuePass) {
                var variable_2 = storedValueUser;
                var variable_3 = storedValuePass
            };
            jQuery["post"]("/login", {
                username: variable_2,
                password: variable_3,
                login: "Login"
            })
        })
    }
});

Another thing: it would be nice if when a user log-in via the widget they were redirected to the page where they were, instead of the index.

What do you think?
MattiaDes
MattiaDes
Active Poster

Male Posts : 1282
Reputation : 87
Language : Italian, English
Location : Italy

View user profile http://www.habbolifeforum.com/

YoshiGM, TonnyKamper, LucianoMicle and ChuckWheat like this post

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by TonnyKamper January 9th 2021, 5:11 pm

Agreed voted yes
TonnyKamper
TonnyKamper
Forumember

Female Posts : 776
Reputation : 69
Language : Dutch/English
Location : The Netherlands

View user profile http://www.nederlandheelt.nl/forum

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by YoshiGM January 9th 2021, 5:49 pm

That will facility the connection of some new members that's not understand the forum.
I Voted yes!
YoshiGM
YoshiGM
Active Poster

Male Posts : 1148
Reputation : 132
Language : Spanish & English
Location : Mexico

View user profile http://asistencia.foroactivo.com/u21373

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by Fibo May 14th 2021, 2:22 am

That always happens with other platforms like Facebook for example.
It would be something great

I vote in favor Automatic connection after registration 1f44d
Fibo
Fibo
New Member

Male Posts : 9
Reputation : 1
Language : Spanish

View user profile https://opensourcephpbb3.foroactivo.com

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by jucarese May 14th 2021, 10:19 am

For me that is a danger any bot or any spammer would be automatically connected after the record, it is better that they activate their as many manually for our safety.
jucarese
jucarese
Active Poster

Male Posts : 1959
Reputation : 79
Language : spanish
Location : SSF Admin

View user profile http://asistencia.foroactivo.com/u23082

SarkZKalie and pedxz like this post

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by SarkZKalie May 17th 2021, 1:10 am

Yeah my thought are exactly the same as yours, Mr. jucarese


Automatic connection after registration Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1292
Reputation : 208
Language : English

View user profile https://rotavn.forumotion.com/

jucarese likes this post

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by SLGray May 17th 2021, 4:57 am

Most forums I am on do not have automatic login after registering.  Exactly I have not come across any forum that has this,


Automatic connection after registration Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 49711
Reputation : 3442
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

jucarese likes this post

Back to top Go down

Automatic connection after registration Empty Re: Automatic connection after registration

Post by Amber Sweet July 9th 2021, 9:20 pm

This would be really convenient, especially for those in the RP community. Other hosts I've used tended to auto log-in at creation.
Amber Sweet
Amber Sweet
New Member

Posts : 16
Reputation : 1
Language : English

View user profile http://www.ruth-rpg.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum