Drupal Plugin

Protecting your site with CryptoPhoto is quick and easy.

Drupal Help

CryptoPhoto for Drupal


Before being able to deploy the CryptoPhoto Drupal plugin, you must register a new CryptoPhoto administration account and obtain API Keys, which will be used to configure CryptoPhoto for Drupal.

Creating and configuring a CryptoPhoto administration account is described here.

Download the Drupal distribution ZIP file


Download the CryptoPhoto distribution ZIP from here:

CryptoPhoto Plugin for Drupal 7.x:    cryptophoto-drupal-7.x-1.0.zip

CryptoPhoto Plugin for Drupal 8.x:    see here

Install CryptoPhoto


INSTALLING CRYPTOPHOTO PLUGIN FOR DRUPAL

  1. Download cryptophoto-drupal-7.x-1.0.zip ZIP archive. You will get a Drupal module package.
  2. Upload the ZIP archive to your Drupal site using the regular Modules / Install new module
  1. Install the plugin
  1. Enable the plugin and Save configuration

Configure CryptoPhoto


Once installed and enabled, you can start configuring CryptoPhoto for your Drupal site. First we need to set the API Keys that will be used with the CryptoPhoto deployment. You can reach the CryptoPhoto Configuration page by going to Modules and click on Configure (CryptoPhoto item under SECURITY): "/admin/config/system/cryptophoto"



Complete the Cryptophoto setup by setting the values of the private and public keys variables to the values of the API keys you received when you created your CryptoPhoto account. Also set the value of the salt*.



*Note: The "Salt" is used to create unique user IDs. It is recommended to use a random string. Once set to a certain value, do not to change it, or the CryptoPhoto settings for all the site users will be reset.

Note: You can use the Setup wizard button to start the wizard plugin configuration which will take care of configuring the API keys and salt for you.


TEST YOUR CRYPTOPHOTO INSTALLATION AND CONFIGURATION

  1. Use the Test configuration button to verify your configuration.
  2. If successful, your plugin is properly installed and configured
  3. If an error occurs:
    • check the error message and act accordingly
    • check that your plugin is properly installed and that you followed correctly the steps above
    • retry to install and configure the plugin, using this guide
    • contact

ENABLE USERS PERMISSIONS

Enable permission for your users to access CryptoPhoto service (by clicking on "Permissions" link in CryptoPhoto OPERATIONS).

Use CryptoPhoto Service


After you've enabled, configured the plugin and permissions, users can activate/deactivate the CryptoPhoto service by accessing the CryptoPhoto through the "My account" menu.

From this point on, your users can download/enroll new tokens and opt-in CryptoPhoto Authentication. The CryptoPhoto Settings page will be available for all your Drupal users.

Uninstall CryptoPhoto


To remove the CryptoPhoto plugin, uninstall it using the uninstall option in your Modules page.

Note: The module must be disabled in order to uninstall it.

Customize the Login Page


The CryptoPhoto module ships with a plain login page. The login page can be easily customised and styled to fit in with the rest of your Drupal site.

The module includes a resources folder that contains the files cryptophoto_header.php and cryptophoto_footer.php which you can edit to achieve the desired visual style for your login page.