summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-09-04 13:08:55 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2012-09-04 13:08:55 +0300
commit395ea2a02853471478ff529a2dfbd8ba5787865e (patch)
tree6d9fbfe45454a337aa1a363d35fae90b25877bda /core/lostpassword
parent3ddd28b97223625963b9ae932aa34e0abd0e313f (diff)
downloadnextcloud-server-395ea2a02853471478ff529a2dfbd8ba5787865e.tar.gz
nextcloud-server-395ea2a02853471478ff529a2dfbd8ba5787865e.zip
Update core/lostpassword/index.php
respect coding style
Diffstat (limited to 'core/lostpassword')
-rw-r--r--core/lostpassword/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php
index 58dab597324..3f58b03c982 100644
--- a/core/lostpassword/index.php
+++ b/core/lostpassword/index.php
@@ -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));
}