summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/lostpassword/index.php (renamed from lostpassword/index.php)12
-rw-r--r--core/lostpassword/resetpassword.php (renamed from lostpassword/resetpassword.php)10
-rw-r--r--core/lostpassword/templates/email.php (renamed from lostpassword/templates/email.php)0
-rw-r--r--core/lostpassword/templates/lostpassword.php (renamed from lostpassword/templates/lostpassword.php)0
-rw-r--r--core/lostpassword/templates/resetpassword.php (renamed from lostpassword/templates/resetpassword.php)0
-rw-r--r--core/templates/login.php2
6 files changed, 12 insertions, 12 deletions
diff --git a/lostpassword/index.php b/core/lostpassword/index.php
index 6d629a71089..de0d393ec78 100644
--- a/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:
if (isset($_POST['user'])) {
@@ -16,17 +16,17 @@ if (isset($_POST['user'])) {
OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword', $token);
$email = OC_Preferences::getValue($_POST['user'], 'lostpassword', 'email', '');
if (!empty($email)) {
- $link = OC_Helper::linkTo('lostpassword', 'resetpassword.php', null, true).'?user='.$_POST['user'].'&token='.$token;
- $tmpl = new OC_Template('lostpassword', 'email');
+ $link = OC_Helper::linkTo('core/lostpassword', 'resetpassword.php', null, true).'?user='.$_POST['user'].'&token='.$token;
+ $tmpl = new OC_Template('core/lostpassword', 'email');
$tmpl->assign('link', $link);
$msg = $tmpl->fetchPage();
$l = new OC_L10N('core');
mail($email, $l->t('Owncloud password reset'), $msg);
}
- OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => false, 'requested' => true));
+ OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => true));
} else {
- OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => true, 'requested' => false));
+ OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => true, 'requested' => false));
}
} else {
- OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => false, 'requested' => false));
+ OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => false));
}
diff --git a/lostpassword/resetpassword.php b/core/lostpassword/resetpassword.php
index 1a6a74e5ff4..1c78d720947 100644
--- a/lostpassword/resetpassword.php
+++ b/core/lostpassword/resetpassword.php
@@ -7,21 +7,21 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps
-require_once('../lib/base.php');
+require_once('../../lib/base.php');
// Someone wants to reset their password:
if(isset($_GET['token']) && isset($_GET['user']) && OC_Preferences::getValue($_GET['user'], 'owncloud', 'lostpassword') === $_GET['token']) {
if (isset($_POST['password'])) {
if (OC_User::setPassword($_GET['user'], $_POST['password'])) {
OC_Preferences::deleteKey($_GET['user'], 'owncloud', 'lostpassword');
- OC_Template::printGuestPage('lostpassword', 'resetpassword', array('success' => true));
+ OC_Template::printGuestPage('core/lostpassword', 'resetpassword', array('success' => true));
} else {
- OC_Template::printGuestPage('lostpassword', 'resetpassword', array('success' => false));
+ OC_Template::printGuestPage('core/lostpassword', 'resetpassword', array('success' => false));
}
} else {
- OC_Template::printGuestPage('lostpassword', 'resetpassword', array('success' => false));
+ OC_Template::printGuestPage('core/lostpassword', 'resetpassword', array('success' => false));
}
} else {
// Someone lost their password
- OC_Template::printGuestPage('lostpassword', 'lostpassword', array('error' => false, 'requested' => false));
+ OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => false));
}
diff --git a/lostpassword/templates/email.php b/core/lostpassword/templates/email.php
index d146d8e4c37..d146d8e4c37 100644
--- a/lostpassword/templates/email.php
+++ b/core/lostpassword/templates/email.php
diff --git a/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php
index 4b871963b80..4b871963b80 100644
--- a/lostpassword/templates/lostpassword.php
+++ b/core/lostpassword/templates/lostpassword.php
diff --git a/lostpassword/templates/resetpassword.php b/core/lostpassword/templates/resetpassword.php
index 56257de7f13..56257de7f13 100644
--- a/lostpassword/templates/resetpassword.php
+++ b/core/lostpassword/templates/resetpassword.php
diff --git a/core/templates/login.php b/core/templates/login.php
index 46b44c24d78..aff0afac203 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -1,7 +1,7 @@
<form action="index.php" method="post">
<fieldset>
<?php if($_['error']): ?>
- <a href="./lostpassword/"><?php echo $l->t('Lost your password?'); ?></a>
+ <a href="./core/lostpassword/"><?php echo $l->t('Lost your password?'); ?></a>
<?php endif; ?>
<p class="infield">
<label for="user" class="infield"><?php echo $l->t( 'Username' ); ?></label>