blob: 4141e0474d0b0b3f16be22a581f8c9c69998ad8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
class ImportarPerfilHooks {
public static function afterAddNewAccount( $user, $byEmail ) {
// Do nothing if account creation was by e-mail
if ( $byEmail ) {
return true;
}
$username = $user->mName;
$email = $user->mEmail;
error_log("############### Se creo una cuenta, intento importar datos del perfil de $username de Elgg si existe");
$importar = exec("php /srv/reevo-2020/bin/wiki/ImportarPerfil/ImportarPerfil.php -n true -u $username -e $email");
error_log("Devolvio: $importar");
// return self::addRedirect( 'addnewaccount' );
}
}
|