Site Builder
Editing:
google-login.php
writable 0666
<?php require_once __DIR__.'/../lib/config.php'; session_start(); // CSRF protection $state = bin2hex(random_bytes(16)); $_SESSION['oauth2state'] = $state; $params = [ 'client_id' => GOOGLE_CLIENT_ID, 'redirect_uri' => GOOGLE_REDIRECT_URI, 'response_type' => 'code', 'scope' => 'openid email profile', 'state' => $state, 'hd' => '', // restrict domain if you ever need to 'prompt' => 'select_account' ]; header('Location: https://accounts.google.com/o/oauth2/v2/auth?'.http_build_query($params)); exit;
Save changes
Create folder
writable 0777
Create
Cancel