View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012733 | mantisbt | customization | public | 2011-01-31 20:25 | 2011-01-31 20:25 |
Reporter | rgomes1997 | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 1.2.4 | ||||
Summary | 0012733: 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. | ||||
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. // Allow external User Registration // Allow external Password Recovery | ||||
Tags | No 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' ) ); } } | ||||