Comments (5)
Please file questions at Stack Overflow, this issue tracker should be use to file bugs!
But I'm in a good mood today :) You should implement this yourself.
In the guide you find a PHP example how you can determine if a user is logged in: https://developers.google.com/identity/toolkit/web/quickstart/php
In short call the GitKit client module:
$gitkitClient = Gitkit_Client::createFromFile(dirname(__FILE__) . '/gitkit-server-config.json');
$gitkitUser = $gitkitClient->getUserInRequest();
Check if the user is logged in, if the e-mail is verified. And if not show the verify link
if ($gitkitUser) {
echo $gitkitUser->getEmail() . "\n";
echo $gitkitUser->isEmailVerified() . "\n";
if($gitkitUser->isEmailVerified() == false) {
echo $gitkitClient->getEmailVerificationLink($gitkitUser->getEmail()) . "\n";
}
}
from identity-toolkit-php-client.
I have already known that, but I wonder is it ok if a user is created an account by using password (email is not verified) and I don't want to force my user to verify their email? In other words, does it necessary to do email verification?
from identity-toolkit-php-client.
It is up to you whether you want to verify an account email or not. You are not forced to. However if you want to, you have to implement it yourself. However the email verification link has to be emailed to the user's email for them to verify it. You want to make sure the user actually owns that email. Once they click on the oob link you emailed, they will be taken to the widget page to complete verification.
from identity-toolkit-php-client.
@bojeil good point. In extension, It's better to encapsulate the OOB link in your own application so that the oob link url match the domain of the outgoing e-mail. Otherwise your e-mail could be marked as spam.
from identity-toolkit-php-client.
Thank you very much! This is my first time of implementing a user system with 3rd party system, so I did not sure about "what I should and what I should not".
from identity-toolkit-php-client.
Related Issues (8)
- [Composer] google/apiclient 1.1 is not compatible with google/identity-toolkit-php-client? HOT 1
- [BUG] Token used too early HOT 1
- How to install? HOT 1
- Link to newest repository
- Fatal error: Cannot override final method Google_Model::__construct() in /.../gitkit/apiclient/src/GitkitAccount.php on line 21 HOT 1
- Wrong documentation in src/RpcHelper.php
- Improved README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identity-toolkit-php-client.