This commit is contained in:
2025-02-02 05:16:59 +05:30
parent 84e4d236a1
commit ecebef5a4a
13 changed files with 123 additions and 56 deletions

View File

@@ -32,8 +32,8 @@ if (isset($_POST['login_btn'])) {
$_SESSION['user_email'] = $row['user_email'];
$_SESSION['user_type'] = $row['user_type'];
// Redirect to dashboard after successful login
header('Location: ../dashboard.php');
// Redirect to monetization after successful login
header('Location: ../monetization.php');
exit();
} else {
$_SESSION['error'] = "Invalid password. Please try again.";

View File

@@ -60,8 +60,8 @@ if (isset($_GET['code'])) {
$_SESSION['user_name'] = $name;
$_SESSION['user_email'] = $email;
// Redirect to dashboard
header("Location: ../dashboard.php");
// Redirect to monetization
header("Location: ../monetization.php");
exit();
} else {
header("Location: " . $client->createAuthUrl());