mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
add identifier choice
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9110 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c7b35ff5c7
commit
af4c27f832
12 changed files with 89 additions and 14 deletions
|
|
@ -212,6 +212,7 @@
|
|||
|
||||
// create Ruleset
|
||||
$this->_createSignupRuleset($signupForm);
|
||||
$this->_createLoginRuleset($args->identifier);
|
||||
}
|
||||
$output = $oModuleController->updateModuleConfig('member', $args);
|
||||
// default setting end
|
||||
|
|
@ -244,6 +245,31 @@
|
|||
|
||||
$xml_buff = sprintf($buff, implode('', $fields));
|
||||
FileHandler::writeFile($xml_file, $xml_buff);
|
||||
|
||||
$validator = new Validator($xml_file);
|
||||
$validator->setCacheDir('files/cache');
|
||||
$validator->getJsPath();
|
||||
}
|
||||
|
||||
function _createLoginRuleset($identifier){
|
||||
$xml_file = './files/ruleset/login.xml';
|
||||
$buff = '<?xml version="1.0" encoding="utf-8"?>'
|
||||
.'<ruleset version="1.5.0">'
|
||||
.'<customrules>'
|
||||
.'</customrules>'
|
||||
.'<fields>%s</fields>'
|
||||
.'</ruleset>';
|
||||
|
||||
$fields = array();
|
||||
$fields[] = sprintf('<field name="user_id" required="true" rule="%s"/>', $identifier);
|
||||
$fields[] = '<field name="password" required="true" />';
|
||||
|
||||
$xml_buff = sprintf($buff, implode('', $fields));
|
||||
FileHandler::writeFile($xml_file, $xml_buff);
|
||||
|
||||
$validator = new Validator($xml_file);
|
||||
$validator->setCacheDir('files/cache');
|
||||
$validator->getJsPath();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue