Auth_Container_Array

Auth_Container_Array – Authenticate against an array of usernames and passwords

Array

This storage container provides a simple way to store a limited number of username/password pairs within the source code of the script.

The storage-specific argument for the Auth constructor() is an array of options.

Available Options
Option Data Type Default value Description
"cryptType" string "none" The encryption type the password is stored in.
"users" array array() Named array of usernames and password hashes.
<?php
array(
    
'guest' => '084e0343a0486ff05530df6c705c8bb4'// password guest
    
'georg' => 'fc77dba827fcc88e0243404572c51325' // password georg
)
?>
Introduction (Previous) Authenticate against a database using DB (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.