View Issue Details

IDProjectCategoryView StatusLast Update
0012733mantisbtcustomizationpublic2011-01-31 20:25
Reporterrgomes1997 Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version1.2.4 
Summary0012733: External registration / external password reset
Description

I'd like to integrate Mantis with an external User Maintenance application which has ability to perform password recovery.

I implemented this change on Mantis version 1.2.4.
See Additional Information

Additional Information

The attached patch was generated like this:

diff -uN ./core/print_api.php ./core/print_api.php.OLD > mantis-1.2.4-patch.txt

See my below my configurations.
At the moment, I delegate to Mediawiki, which is responsible for integration with LDAP, providing user maintenance and password reset.

// Allow external User Registration
$g_allow_signup = ON;
$g_signup_link = 'http://www.jquantlib.org/index.php?title=Special:UserLogin&type=signup&returnto=http://bugs.jquantlib.org/';

// Allow external Password Recovery
$g_lost_password_feature = ON;
$g_send_reset_password = OFF; // disabled at the moment
$g_lost_password_link = 'http://www.jquantlib.org/WHATEVER_IT_WILL_BE';

TagsNo tags attached.
Attached Files
mantis-1.2.4-patch.txt (1,735 bytes)   
--- ./core/print_api.php	2011-01-31 18:55:54.000000000 +0000
+++ ./core/print_api.php.OLD	2010-12-15 02:26:31.000000000 +0000
@@ -1563,14 +1563,10 @@
 # prints the signup link
 function print_signup_link() {
 	if ( ( ON == config_get_global( 'allow_signup' ) ) &&
-	     ( config_is_set( 'signup_link' ) || LDAP != config_get_global( 'login_method' ) ) &&
+	     ( LDAP != config_get_global( 'login_method' ) ) &&
 	     ( ON == config_get( 'enable_email_notification' ) )
 	   ) {
-		if( config_is_set( 'signup_link' ) ) {
-                    print_bracket_link( config_get( 'signup_link' ), lang_get( 'signup_link' ) );
-                } else {
-                    print_bracket_link( 'signup_page.php', lang_get( 'signup_link' ) );
-                }
+		print_bracket_link( 'signup_page.php', lang_get( 'signup_link' ) );
 	}
 }
 
@@ -1582,15 +1578,11 @@
 # prints the lost pwd link
 function print_lost_password_link() {
 	# lost password feature disabled or reset password via email disabled -> stop here!
-	if ( ( config_is_set( 'lost_password_link' ) || LDAP != config_get_global( 'login_method' ) ) &&
+	if ( ( LDAP != config_get_global( 'login_method' ) ) &&
 	     ( ON == config_get( 'lost_password_feature' ) ) &&
 	     ( ON == config_get( 'send_reset_password' ) ) &&
 	     ( ON == config_get( 'enable_email_notification' ) ) ) {
-		if( config_is_set( 'signup_link' ) ) {
-                    print_bracket_link( config_get( 'lost_password_link' ), lang_get( 'lost_password_link' ) );
-                } else {
-                    print_bracket_link( 'lost_pwd_page.php', lang_get( 'lost_password_link' ) );
-                }
+		print_bracket_link( 'lost_pwd_page.php', lang_get( 'lost_password_link' ) );
 	}
 }
 
mantis-1.2.4-patch.txt (1,735 bytes)   

Activities