Update core/lostpassword/index.php

respect coding style
This commit is contained in:
Thomas Müller 2012-09-04 13:08:55 +03:00
parent 3ddd28b972
commit 395ea2a028
1 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps
require_once('../../lib/base.php');
require_once '../../lib/base.php';
// Someone lost their password:
@ -23,20 +23,20 @@ if (isset($_POST['user'])) {
$msg = $tmpl->fetchPage();
$l = OC_L10N::get('core');
$from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud');
OC_MAIL::send($email, $_POST['user'], $l->t('ownCloud password reset'), $msg, $from, 'ownCloud');
echo('sent');
}
$sectoken=rand(1000000,9999999);
$sectoken=rand(1000000, 9999999);
$_SESSION['sectoken']=$sectoken;
OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => true, 'sectoken' => $sectoken));
} else {
$sectoken=rand(1000000,9999999);
$sectoken=rand(1000000, 9999999);
$_SESSION['sectoken']=$sectoken;
OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => true, 'requested' => false, 'sectoken' => $sectoken));
}
} else {
$sectoken=rand(1000000,9999999);
$sectoken=rand(1000000, 9999999);
$_SESSION['sectoken']=$sectoken;
OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => false, 'sectoken' => $sectoken));
}