summaryrefslogtreecommitdiff
path: root/remind_password.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-03-10 18:24:33 +0000
committerChristian Fowler <spider@viovio.com>2006-03-10 18:24:33 +0000
commitf453cee9e565fa6455bfaea845188802110e7a59 (patch)
tree93d1d597911af1654ca2250d463857740c5941ed /remind_password.php
parentde8159f193d58366e866b5dc8653ed2954e20206 (diff)
downloadusers-f453cee9e565fa6455bfaea845188802110e7a59.tar.gz
users-f453cee9e565fa6455bfaea845188802110e7a59.tar.bz2
users-f453cee9e565fa6455bfaea845188802110e7a59.zip
fix very broken stuff leftover the pre-cambrian period
Diffstat (limited to 'remind_password.php')
-rw-r--r--remind_password.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/remind_password.php b/remind_password.php
index ae69bef..8875a35 100644
--- a/remind_password.php
+++ b/remind_password.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/remind_password.php,v 1.8 2006/03/01 18:35:20 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/remind_password.php,v 1.9 2006/03/10 18:24:33 spiderr Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: remind_password.php,v 1.8 2006/03/01 18:35:20 spiderr Exp $
+ * $Id: remind_password.php,v 1.9 2006/03/10 18:24:33 spiderr Exp $
* @package users
* @subpackage functions
*/
@@ -17,11 +17,10 @@
* required setup
*/
require_once( '../bit_setup_inc.php' );
-if ($forgot_pass != 'y') {
- $gBitSmarty->assign('msg', tra("This feature is disabled").": forgot_pass");
- $gBitSystem->display( 'error.tpl' );
- die;
-} elseif( $gBitUser->isRegistered() ) {
+
+$gBitSystem->verifyFeature( 'forgot_pass' );
+
+if( $gBitUser->isRegistered() ) {
header( 'Location: '.BIT_ROOT_URL );
die;
} elseif (isset($_REQUEST["remind"])) {