There is a little bug in auth with fb and others. If you log in with hybridauth, the user status is approved by default, not following the global settings->Account registrations require admin approval ? check box.
modifying /sites/default/plugins/uni_login/uni_login.php
line 145
$reg->user_status = 1; //approved user
to
$reg->user_status = 0; //not approved user
and ./sites/default/plugins/sso/sso.php
line 52 replace
$reg->user_status = 1;
with
$reg->user_status = 0;
solved the problem.
can someome ( maybe @adesh1414127033 ) give me the global variable name of the checkbox in parameters to modify the code and follow the default policy ?
There is a little bug in auth with fb and others. If you log in with hybridauth, the user status is approved by default, not following the global settings->Account registrations require admin approval ? check box.
modifying /sites/default/plugins/uni_login/uni_login.php
line 145
````
$reg->user_status = 1; //approved user
````
to
````
$reg->user_status = 0; //not approved user
````
and ./sites/default/plugins/sso/sso.php
line 52 replace
````
$reg->user_status = 1;
````
with
````
$reg->user_status = 0;
````
solved the problem.
can someome ( maybe @adesh1414127033 ) give me the global variable name of the checkbox in parameters to modify the code and follow the default policy ?
please, excuse my bad english! ( i'm french, and i know, it's not a good excuse ! ;) )
edited Oct 6 '16 at 11:04 am
