mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
issue 119 fixed check required field in signup form
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9614 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9003869fba
commit
aa4b84f666
1 changed files with 3 additions and 1 deletions
|
|
@ -247,7 +247,9 @@
|
|||
$fields = array();
|
||||
foreach($signupForm as $formInfo){
|
||||
if ($formInfo->required || $formInfo->mustRequired){
|
||||
if($formInfo->name == 'password'){
|
||||
if($formInfo->type == 'tel' || $formInfo->type == 'kr_zip'){
|
||||
$fields[] = sprintf('<field name="%s[]" required="true" />', $formInfo->name);
|
||||
}else if($formInfo->name == 'password'){
|
||||
$fields[] = '<field name="password"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /><if test="$act == \'procMemberInsert\'" attr="length" value="3:20" /></field>';
|
||||
$fields[] = '<field name="password2"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /><if test="$act == \'procMemberInsert\'" attr="equalto" value="password" /></field>';
|
||||
}else if($formInfo->name == 'find_account_question'){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue