Code Monkey home page Code Monkey logo

latch-plugin-wordpress's Introduction

LATCH INSTALLATION GUIDE FOR WORDPRESS

PREREQUISITES

  • WordPress version 1.5 or later. (Tested up to 6.2)

  • Curl extensions active in PHP (uncomment "extension=php_curl.dll" or"** extension=curl.so"** in Windows or Linux php.ini respectively.

  • To get the "Application ID" and "Secret", (fundamental values for integrating Latch in any application), it’s necessary to register a developer account in Latch's website. On the upper right side, click on "Developer area".

DOWNLOADING THE WORDPRESS PLUGIN

  • When the account is activated, the user will be able to create applications with Latch and access to developer documentation, including existing SDKs and plugins. The user has to access again to Developer area, and browse his applications from "My applications" section in the side menu.

  • When creating an application, two fundamental fields are shown: "Application ID" and "Secret", keep these for later use. There are some additional parameters to be chosen, as the application icon (that will be shown in Latch) and whether the application will support OTP (One Time Password) or not.

  • From the side menu in developers area, the user can access the "Documentation & SDKs" section. Inside it, there is a "SDKs and Plugins" menu. Links to different SDKs in different programming languages and plugins developed so far, are shown.

INSTALLING THE PLUGIN IN WORDPRESS

  • Once the administrator has downloaded the plugin from the releases page , it has to be added as a plugin in its administration panel in WordPress. Click on "Plugins" and "Add new". It will show a form where you can browse and select previously downloaded ZIP file.

  • Go to "Latch settings", inside "Settings" and introduce "Application ID" and "Secret" previously generated. The administrator can now save the changes clicking on "Save". If everything is ok, a confirmation message will be received.

  • From now on, on user's profile, a new textbox will appear, inside "Profile" menu, where the token generated from the app should be introduced.

UNINSTALLING THE PLUGIN IN WORDPRESS

  • To remove the plugin, the administrator has to click on "Plugins" and press the "Deactivate" link below the "Latch" plugin, and then press the link “Delete”.

USE OF LATCH MODULE FOR THE USERS

Latch does not affect in any case or in any way the usual operations with an account. It just allows or denies actions over it, acting as an independent extra layer of security that, once removed or without effect, will have no effect over the accounts, that will remain with its original state.

Pairing a user in WordPress

The user needs the Latch application installed on the phone, and follow these steps:

  • Step 1: Logged in your own WordPress account and go to "Profile".

  • Step 2: From the Latch app on the phone, the user has to generate the token, pressing on “Add a new service" at the bottom of the application, and pressing "Generate new code" will take the user to a new screen where the pairing code will be displayed.

  • Step 3: The user has to type the characters generated on the phone into the text box displayed on the web page. Click on "Update Profile" button.

  • Step 4: Now the user may lock and unlock the account, preventing any unauthorized access.

Unpairing a user in WordPress

  • The user should access their WordPress account and under the “Profile” section tick the “Stop using Latch” box, then tap the “Update Profile” button. He will receive a notification indicating that the service has been unpaired.

RESOURCES

latch-plugin-wordpress's People

Contributors

bocanegra avatar davidcallegalindo avatar jaesga avatar milor123 avatar raul0806 avatar raul3ip avatar softbreakers avatar tinycarol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

latch-plugin-wordpress's Issues

Sessions in not remeber by Browsers (BUG)

Sessions problem in browsers

Hi guys, I've found a bug
When I log in and latch is active:
Latch create a session (with the #11 bug) and then all appear work nice.

What is the problem?

When I close the browser, and go to /wp-admin, I must login again.. when really should be remembered and redirect me to dashboard

It was tested in firefox Quantum and google Chrome stable
And Also was tested in two differents webpages with wordpress.

EDIT AND IMPORTANT

It only happed when the OPT FACTOR IS OBLIGATORY like the follow image:
image

"Remember Me" Not work if OPT is enabled.

OPT problems in Latch

Hi guys, when the OPT factor is enabled:
The remember me is not work, it ignore my default time for "remember me users" and set 2 days for both (remeber and not remember).

Could you fix it? I am not sure about of fixed correctly.

API URL?

The plugin settings page asks for an "API URL" - this isn't given to me on when I generated an API key.

What should it be?

Error when a user add a latch token Fatal error: Uncaught TypeError: array_key_exists

I have installed Wordpress 5.9 in Ubuntu Server 20 LTS with PHP 8 (All updated)

Today,I installed the plugin and configured.
When a user save profile settings adding a Latch Token, Wordpress throw this error

Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, stdClass given in /srv/www/wordpress/wp-content/plugins/latch/vendor/ElevenPaths/latch-sdk-php/src/LatchResponse.php:49 Stack trace: #0 /srv/www/wordpress/wp-content/plugins/latch/vendor/ElevenPaths/latch-sdk-php/src/LatchResponse.php(49): array_key_exists() #1 /srv/www/wordpress/wp-content/plugins/latch/vendor/ElevenPaths/latch-sdk-php/src/LatchAuth.php(174): ElevenPaths\Latch\LatchResponse->__construct() #2 /srv/www/wordpress/wp-content/plugins/latch/vendor/ElevenPaths/latch-sdk-php/src/LatchApp.php(48): ElevenPaths\Latch\LatchAuth->HTTP_GET_proxy() #3 /srv/www/wordpress/wp-content/plugins/latch/latch.php(144): ElevenPaths\Latch\LatchApp->pair() #4 /srv/www/wordpress/wp-includes/class-wp-hook.php(309): latch::action_user_profile_update_errors() #5 /srv/www/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #6 /srv/www/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action() #7 /srv/www/wordpress/wp-admin/includes/user.php(220): do_action_ref_array() #8 /srv/www/wordpress/wp-admin/user-edit.php(166): edit_user() #9 /srv/www/wordpress/wp-admin/profile.php(18): require_once('...') #10 {main} thrown in /srv/www/wordpress/wp-content/plugins/latch/vendor/ElevenPaths/latch-sdk-php/src/LatchResponse.php on line 49

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.