diff --git a/css/status_config.php b/css/status_config.php index a6bd78213d..12191fd63b 100644 --- a/css/status_config.php +++ b/css/status_config.php @@ -69,6 +69,7 @@ switch( $t_referer_page ) { case AUTH_PAGE_USERNAME: + case AUTH_PAGE_CREDENTIAL: case 'signup_page.php': case 'lost_pwd_page.php': case 'account_update.php': diff --git a/login_page.php b/login_page.php index 65846a2d83..4d3d05aa22 100644 --- a/login_page.php +++ b/login_page.php @@ -15,8 +15,10 @@ # along with MantisBT. If not, see . /** - * Login page POSTs results to login.php - * Check to see if the user is already logged in + * Login page accepts username and posts results to login_password_page.php, + * which may take the users credential or redirect to a plugin specific page. + * + * This page also offers features like anonymous login and signup. * * @package MantisBT * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org @@ -76,8 +78,6 @@ $t_show_anonymous_login = auth_anonymous_enabled(); -$t_show_warnings = true; - $t_form_title = lang_get( 'login_title' ); # If user is already authenticated and not anonymous @@ -211,7 +211,6 @@ function debug_setting_message ( $p_type, $p_setting, $p_value ) {
-
@@ -242,14 +241,12 @@ class="form-control autofocus">
- - 0 ) { +if( count( $t_warnings ) > 0 ) { echo '
'; echo '
'; foreach( $t_warnings AS $t_warning ) { diff --git a/login_password_page.php b/login_password_page.php index 49efa3300f..12ec12211c 100644 --- a/login_password_page.php +++ b/login_password_page.php @@ -15,12 +15,14 @@ # along with MantisBT. If not, see . /** - * Login page POSTs results to login.php - * Check to see if the user is already logged in + * Login credential page asks user for password then posts to login.php page. + * If an authentication plugin is installed and has its own credential page, + * this page will re-direct to it. + * + * This page also offers features like remember me, secure session, and forgot password. * * @package MantisBT - * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org - * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net + * @copyright Copyright MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org * * @uses core.php @@ -101,12 +103,6 @@ print_header_redirect( $t_redirect_url ); } -if( config_get_global( 'email_login_enabled' ) ) { - $t_username_label = lang_get( 'username_or_email' ); -} else { - $t_username_label = lang_get( 'username' ); -} - $t_session_validation = !$f_reauthenticate && ( ON == config_get_global( 'session_validation' ) ); $t_show_reset_password = !$f_reauthenticate && @@ -135,7 +131,7 @@ # - If errors, use the value passed in. if( $t_session_validation ) { if( !$f_error && !$f_cookie_error ) { - $t_default_secure_session = ( is_null( $f_secure_session_cookie ) ? true : $f_secure_session_cookie ); + $t_default_secure_session = is_null( $f_secure_session_cookie ) ? true : $f_secure_session_cookie; } else { $t_default_secure_session = $f_secure_session; } @@ -209,7 +205,6 @@
-
@@ -271,8 +266,6 @@ class="form-control autofocus"> ?>
- -