LiveWhale CMS

Welcome, Guest Login

Support Center

Our documentation is moving: docs.livewhale.com

Please check docs.livewhale.com for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

How do I create a login plugin?

Last Updated: Jun 25, 2014 08:37AM PDT

LiveWhale supports built-in password management, LDAP, and SSO out of the box. View the authentication configuration documentation to learn how to add your authentication.

To create your own login plugin:

  1. Create the following directory in your client modules directory: /livewhale/client/modules/login/includes/plugins
  2. In the directory above, add your own plugin  (ie., my_plugin.php)
  3. Once you've created your login plugin and want to use it for LiveWhale authentication, edit your master config file, /livewhale/config.php, and set LOGIN_MODE to the name of your plugin ("my_plugin")
  4. The format for your plugin is as follows:
<?php
 //the filename and class name should match
  class LiveWhaleLoginMyPlugin{
     
     public function login($username, $password){
        //Add your custom code to perform your authentication
        //return true or false, according to whether the user authenticates
     }
  }
?>

 

Additional Resources

eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=4256