-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenroll.php
More file actions
33 lines (31 loc) · 1.1 KB
/
enroll.php
File metadata and controls
33 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* INTER-Mediator
* Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
*
* INTER-Mediator is supplied under MIT License.
* Please see the full license for details:
* https://github.com/inter-mediator/inter-mediator/blob/master/dist-docs/License.txt
*
* @copyright Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* @link https://inter-mediator.com/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
require_once('vendor/inter-mediator/inter-mediator/INTER-Mediator.php');
IM_Entry(
[
[
'name' => 'authuser', 'key' => 'id','records' => 1,
'authentication' => ['all' => ['target' => 'field-user', 'field' => 'username',],],
],
],
[
'authentication' => [
'authexpired' => '3600', // Set as seconds.
'storing' => 'credential', // session-storage, 'cookie'(default), 'cookie-domainwide', 'none'
],
],
['db-class' => 'PDO'],
2
);