Sometimes, you need a very simple login system. The background for this plugin is a population with very low literacy.
People that hardly remember passwords or even their own emails, but still can remember the mobile number.
This was the case for a NGO that helps refugees from other countries in Africa and the literacy level for these refugees are very low, language is a barrier, but still need to access a WordPress plataform used as a E-Learning platform providing all kind of instructional videos. This NGO required users to be logged in, in order to track which videos were watched, how are users following the Curriculum, etc.
The first idea, was using OTP, but even this approach was hard for this population.
The approach decided was to create a new plugin that will send a link, containing a unique Token, that after clickling will automatically log the user into WordPress, without needing to type email, password or any OTP. Simple: click!
The plugin was design to be used specially by mobile phones accessing WordPress in a mobile browser. But is not limited to mobile phones.
- Upload the plugin files to the
/wp-content/plugins/ts-access-with-tokendirectory, or install the plugin through the WordPress Admin dashboard directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the „Login with Token->Settings” screen to configure the plugin.
- Check for instructions on „Login with Token->Instructions” screen.
How token expiration works?
There are 3 different behaviors:
– Never expires: Token will work indefinitelly (or till a new token is generated).
– Expires immediately after usage: Token will work just once and a new token will be required for a new log in attempt.
– x Days: Token will expire automatically after X days based on Token create date (using WP Cron).
How can I test my Gateway Configurations?
Use the „Login with Token->Test Gateway” screen. It is very straightforward and provide all information required to debug.
Can I see who is using?
If you enable Log Events in Settings page, you will find usage information in „Login with Token->Log” screen.
What is the difference between this solution and one-time password (OTP) solution?
A one-time password (OTP) is an automatically generated numeric or alphanumeric string of characters that authenticates a user for a single transaction or login session. Solutions using OTP for logins usually send one OTP via SMS and then ask for the generated OTP in a form. After that, user logs in.
In this solution, the user receives a link (with a token in the URL). The token is uniquem and after clicking the link, the user is autaomatically logged in, without the need to provide a OTP or extra information.
Nu există nicio verificare pentru acest modul.
Contributori și dezvoltatori
„Plugin Name: Login With Token” este un software open-source. La acest modul au contribuit următoarele persoane.Contributori
Te interesează dezvoltarea?
- First release
- Proof of Concept