do not show password forgotten form when we sent the mail
This commit is contained in:
parent
cecf6d349a
commit
bf9b3f98a7
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
$this->includeTemplate($GLOBALS['top_include']);
|
||||
|
||||
if (isset($form)) {
|
||||
?>
|
||||
|
||||
<p><?php echo sprintf(T_('If you have forgotten your password, %s can generate a new one. Enter the username and e-mail address of your account into the form below and we will e-mail your new password to you.'), $GLOBALS['sitename']); ?></p>
|
||||
@ -27,5 +29,6 @@ $this->includeTemplate($GLOBALS['top_include']);
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
$this->includeTemplate($GLOBALS['bottom_include']);
|
||||
?>
|
@ -157,33 +157,34 @@ if ($form->validate()) {
|
||||
$arValues['email']
|
||||
);
|
||||
}
|
||||
} else {
|
||||
HTML_QuickForm2_Renderer::register(
|
||||
'coolarray',
|
||||
'SemanticScuttle_QuickForm2_Renderer_CoolArray'
|
||||
);
|
||||
//$renderer = HTML_QuickForm2_Renderer::factory('coolarray')
|
||||
$renderer = new SemanticScuttle_QuickForm2_Renderer_CoolArray();
|
||||
$renderer->setOption(
|
||||
array(
|
||||
'group_hiddens' => true,
|
||||
'group_errors' => true
|
||||
)
|
||||
);
|
||||
|
||||
$tplVars['form'] = $form->render($renderer);
|
||||
//fscking form error is not in form|errors
|
||||
$tplVars['error'] .= implode(
|
||||
'<br/>',
|
||||
array_unique(
|
||||
array_merge(
|
||||
$tplVars['form']['errors'],
|
||||
array($form->getError())
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
HTML_QuickForm2_Renderer::register(
|
||||
'coolarray',
|
||||
'SemanticScuttle_QuickForm2_Renderer_CoolArray'
|
||||
);
|
||||
//$renderer = HTML_QuickForm2_Renderer::factory('coolarray')
|
||||
$renderer = new SemanticScuttle_QuickForm2_Renderer_CoolArray();
|
||||
$renderer->setOption(
|
||||
array(
|
||||
'group_hiddens' => true,
|
||||
'group_errors' => true
|
||||
)
|
||||
);
|
||||
|
||||
$tplVars['form'] = $form->render($renderer);
|
||||
$tplVars['loadjs'] = true;
|
||||
$tplVars['subtitle'] = T_('Forgotten Password');
|
||||
//fscking form error is not in form|errors
|
||||
$tplVars['error'] .= implode(
|
||||
'<br/>',
|
||||
array_unique(
|
||||
array_merge(
|
||||
$tplVars['form']['errors'],
|
||||
array($form->getError())
|
||||
)
|
||||
)
|
||||
);
|
||||
$templateservice->loadTemplate('password.tpl', $tplVars);
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user