Sign in with Google

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
Angelo
 
 
Posts: 9
Joined: Wed Sep 09, 2020 8:51 pm

Sign in with Google

Post by Angelo »

Hi. Is there a way or an Extension that uses Sign in with Google? To use in login wwb form
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Sign in with Google

Post by lummis »

Angelo
 
 
Posts: 9
Joined: Wed Sep 09, 2020 8:51 pm

Re: Sign in with Google

Post by Angelo »

Thank You! 8)
User avatar
Dragos
 
 
Posts: 214
Joined: Tue Sep 04, 2018 7:08 am

Re: Sign in with Google

Post by Dragos »

Hi
I have a problem with login with google account. I set all including client id and secret key but google return me error:
Error 400: redirect_uri_mismatch
You can't connect to this app because it doesn't follow Google's OAuth 2.0 policy.
If you are the app developer, register the redirect URI in the Google Cloud Console.
Request details: redirect_uri=https://mywebsite.ro/login.php?hauth.done=Google
Related developer documentation.
In fact most redirect to https://mywebsite.ro not https://mywebsite.ro/login.php ...this is the settings in the console.cloud.google.com and google do not accept other sign like /.
I don't know where is redirect seeting in webpage.
Thank you
PS i try to add to redirect: https://mywebsite.com/login.php/?hauth.done=Google but not work. I dont understand what can i do to make config file.
Thank you again.
I did it! but now, when i go to succes page i have this error: Warning: Undefined array key "email" in D:\wamp64\www\folder\login-ok.php on line 118
in login-ok.php i have this:
On top page:
<?php
session_start();
if (!isset($_SESSION['username']))
{
header('Location: ./stop.php');
exit;
}
if ($_SESSION['role'] == 'Administrator')
{
header('Location: ./movie.php');
exit;
}
else
if ($_SESSION['role'] == 'Member')
{
header('Location: ./movie.php');
exit;
}
?>
And in 114 --> 137 line have:
<div id="wb_LoginName1">
<span id="LoginName1">Bine ati venit:<?php
if (isset($_SESSION['username']))
{
echo $_SESSION['email'];
}
else
{
echo 'Not logged in';
}
?>!</span>
</div>
<div id="wb_LoginName2">
<span id="LoginName2"><?php
if (isset($_SESSION['username']))
{
echo $_SESSION['email'];
}
else
{
echo '';
}
?></span>
</div>
Post Reply