aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/include/modules/session/createAccount.php
blob: 6222ed76083fceb20f07ddfdb43342c2291ca243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/*
    Modules: base/session
*/

    function createAccount($userCn, $userAccount, $userPassword, $toPolicy = _POLICY, $SET = array('category' => null, 'container' => null, 'groups' => '', 'policyAttrs' => array())) {

        global $AUTH;

        require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/createAccount.php');
        $func = $AUTH[$toPolicy]['backend'].'CreateAccount';
        $r = $func($userCn, $userAccount, $userPassword, $toPolicy, $SET);
	$_SESSION['lastCreatedAccount'] = $userAccount;

	return $r;

    }

?>