From: <gi...@us...> - 2008-05-21 22:28:33
|
Revision: 5278 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5278&view=rev Author: giallu Date: 2008-05-21 15:28:10 -0700 (Wed, 21 May 2008) Log Message: ----------- Better fix for 8123. We now check if any of the methods for getting to verify.php is active Modified Paths: -------------- trunk/mantisbt/verify.php Modified: trunk/mantisbt/verify.php =================================================================== --- trunk/mantisbt/verify.php 2008-05-21 22:24:30 UTC (rev 5277) +++ trunk/mantisbt/verify.php 2008-05-21 22:28:10 UTC (rev 5278) @@ -27,6 +27,13 @@ require_once( 'core.php' ); + # check if at least one way to get here is enabled + if ( OFF == config_get( 'allow_signup' ) && + OFF == config_get( 'lost_password_feature' ) && + OFF == config_get( 'send_reset_password' ) ) { + trigger_error( ERROR_LOST_PASSWORD_NOT_ENABLED, ERROR ); + } + $f_user_id = gpc_get_string('id'); $f_confirm_hash = gpc_get_string('confirm_hash'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |