11-23-2017, 01:49 PM
Register - In version 4.3 and up, there is a file called
usersc/includes/scripts/during_user_creation.php
It's at the perfect spot for what you need.
Put this code at the bottom (editing your redirection page).
For facebook, you put your redirect after login on the admin dashboard under social logins.
For the others, you put it in usersc/includes/scripts/custom_login_script.php
I think that about covers it. Let me know if you have any issues.
usersc/includes/scripts/during_user_creation.php
It's at the perfect spot for what you need.
Put this code at the bottom (editing your redirection page).
Code:
$user = new User();
Code:
$login = $user->loginEmail(Input::get('username'), trim(Input::get('password')), 'off');
Code:
if ($login) { Redirect::to('mypage.php');}
For facebook, you put your redirect after login on the admin dashboard under social logins.
For the others, you put it in usersc/includes/scripts/custom_login_script.php
I think that about covers it. Let me know if you have any issues.