Login page
Last Modified: August 11, 2003 05:08AM
|
|
(Any)
|
Description
Just enter your username and password and hit the login button. There is also a Save Login checkbox to have the package remember that you are logged in between browser sessions. You will have to have cookies enabled to login.
If the account doesn't exist, the account is disabled, or the password is incorrect then you will remain at the login page. An error message will be displayed.
The administrator may allow users to sign up for their own accounts. If so, a link to Signup for your own account will be available.
The administrator may also have annonymous login allowed. Annonymous users will be logged in under a common account.
You will be allowed to select a project to work in after logging in. You can make a project your default selection from the Select Project screen or from your Account Options.
Signup
Here you can signup for a new account. You must supply a valid email address and select a unique username. Your randomly generated password will be emailed to your email account. If Mantis is setup so that the email password is not to be emailed, newly generated accounts will have an empty password. |
User Contributed Notes Login page |
|
karlheinz@knerzje.de 22-Oct-2004 12:01 |
#241
|
See in the config_defaults_inc.php:
# --- anonymous login -----------
# Allow anonymous login
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
I created an account/password for anonymous login otherwise I did not get in. I am not sure if this is the way it should go, but it works. My anonymous account logs in as "viewer" and be sure to set the account to "protected", otherwise the account and the password could be managed by the anonymous user - and disable all e-mail notifications.
Hope this helps
Karlheinz |
|
mantis@ibest.biz 22-Dec-2004 9:04 |
#298
|
I installed mantis-0.19.2 and enabled sign up by setting $g_allow_signup to ON and still when I click on the "Signup for a new account" link mantis brings me back to the login page. The link is correct, it sends the user to signup_page.php but something is passing the test as it returns to the login page.
I tried that on two browsers on differnet platforms, Mac OS X and Windows OS. I have Apache/1.3.33 (Darwin) PHP/4.3.9
Anybody had that happen and what is the remedy?
Thanks |
|
bkerin@mail1.asf.alaska.edu 07-Jan-2005 13:56 |
#310
|
I have this same problem. It sometimes works, but usually not. I haven't identified the exact circumstances under which it works. I'd also love to hear of a solution, since this is sort of a show stopper.
Britton |
|
marjan at dewresearch com 09-Jan-2005 6:25 |
#312
|
| Same problem here, using Win2k, Apache 2.0.52, PHP 5.0.3 and Mantis 0.19.2. Is the problem related so some settings in php.ini ? |
|
m.stroell@horsch.com 26-Jan-2005 8:50 |
#333
|
The default login for an adminstrator is:
Login: administrator
Password: root |
|
keithp@linuxmail.org 28-Jan-2005 12:33 |
#337
|
I had the same problem. I found the problem to be in the core.php file where it requires access_api.php.
I CHANGED THIS(ignore the arrows, they just indicate the changes):
# SEND USER-DEFINED HEADERS
foreach( config_get( 'custom_headers' ) as $t_header ) {
header( $t_header );
}
require_once( $t_core_path.'project_api.php' )
require_once( $t_core_path.'access_api.php' ); #<-THIS NEEDS A CONDITION
require_once( $t_core_path.'print_api.php' );
require_once( $t_core_path.'helper_api.php' );
require_once( $t_core_path.'user_api.php' );
TO THIS:
# SEND USER-DEFINED HEADERS
foreach( config_get( 'custom_headers' ) as $t_header ) {
header( $t_header );
}
require_once( $t_core_path.'project_api.php' );
if( basename( $_SERVER['SCRIPT_NAME'] ) != 'signup_page.php' ) {
if( basename( $_SERVER['SCRIPT_NAME'] ) != 'lost_pwd_page.php' ){
require_once( $t_core_path.'access_api.php' ); #<-NOW CONDITIONAL
}
}
require_once( $t_core_path.'print_api.php' );
require_once( $t_core_path.'helper_api.php' );
require_once( $t_core_path.'user_api.php' );
# I basically made the inclusion of access_api.php not required if
# the page requested was signup_page.php or lost_pwd_page.php
# Its an easy fix! |
|
elgonzoREPLACE-WITH-ATweb.de 24-Feb-2005 7:22 |
#363
|
keithp@linuxmail.org got the solution (Thank you!), just the place for applying the patch was not chosen well.
Making the statement
require_once( $t_core_path.'access_api.php' );
conditional in core.php produces unecessary error messages like
PHP Fatal error: Call to undefined function access_denied() in /html/mantis/core/authentication_api.php on line 409
which, for example, are filling up the error log of the Apache web server.
Based on the solution by keithp@linuxmail.org, i found a cleaner way without being bothered by these error messages.
In file core/html_api.php, function html_footer, replace the code block spanning from line 352 to the end of the function (line 393):
# only display webmaster email is current user is not the anonymous user
if ( isset( $_SERVER['PHP_SELF'] ) && ( false === strstr( "login_page.php", $_SERVER['PHP_SELF'] ) ) && !current_user_is_anonymous() ) {
echo "\t", '<address><a href="mailto:', config_get( 'webmaster_email' ), '">', config_get( 'webmaster_email' ), '</a></address>', "\n";
}
# print timings
if ( ON == config_get( 'show_timer' ) ) {
$g_timer->print_times();
}
# print db queries that were run
if ( ON == config_get( 'show_queries_count' ) ) {
$t_count = count( $g_queries_array );
echo "\t", $t_count, ' total queries executed.<br />', "\n";
$t_unique_queries = 0;
$t_shown_queries = array();
for ( $i = 0; $i < $t_count; $i++ ) {
if ( ! in_array( $g_queries_array[$i][0], $t_shown_queries ) ) {
$t_unique_queries++;
$g_queries_array[$i][2] = false;
array_push( $t_shown_queries, $g_queries_array[$i][0] );
} else {
$g_queries_array[$i][2] = true;
}
}
echo "\t", $t_unique_queries . ' unique queries executed.<br />', "\n";
if ( ON == config_get( 'show_queries_list' ) ) {
echo "\t", '<table>', "\n";
$t_total = 0;
for ( $i = 0; $i < $t_count; $i++ ) {
$t_time = $g_queries_array[$i][1];
$t_total += $t_time;
if ( true == $g_queries_array[$i][2] ) {
echo "\t", '<tr valign="top"><td style="color: red">', ($i+1), '</td><td style="color: red">', $t_time , '</td><td style="color: red">', htmlspecialchars($g_queries_array[$i][0]), '</td></tr>', "\n";
} else {
echo "\t", '<tr valign="top"><td>', ($i+1), '</td><td>'. $t_time . '</td><td>', htmlspecialchars($g_queries_array[$i][0]), '</td></tr>', "\n";
}
}
echo "\t", '<tr><td></td><td>', $t_total, '</td><td></td></tr>', "\n";
echo "\t", '</table>', "\n";
}
}
with this code block:
# if signup_page.php or lost_pwd_page.php is requested, neither check current user nor display simple stats.
if (basename( $_SERVER['SCRIPT_NAME'] ) != 'signup_page.php' && basename( $_SERVER['SCRIPT_NAME'] ) != 'lost_pwd_page.php') {
# only display webmaster email is current user is not the anonymous user
if ( isset( $_SERVER['PHP_SELF'] ) && ( false === strstr( "login_page.php", $_SERVER['PHP_SELF'] ) ) && !current_user_is_anonymous() ) {
echo "\t", '<address><a href="mailto:', config_get( 'webmaster_email' ), '">', config_get( 'webmaster_email' ), '</a></address>', "\n";
}
# print timings
if ( ON == config_get( 'show_timer' ) ) {
$g_timer->print_times();
}
# print db queries that were run
if ( ON == config_get( 'show_queries_count' ) ) {
$t_count = count( $g_queries_array );
echo "\t", $t_count, ' total queries executed.<br />', "\n";
$t_unique_queries = 0;
$t_shown_queries = array();
for ( $i = 0; $i < $t_count; $i++ ) {
if ( ! in_array( $g_queries_array[$i][0], $t_shown_queries ) ) {
$t_unique_queries++;
$g_queries_array[$i][2] = false;
array_push( $t_shown_queries, $g_queries_array[$i][0] );
} else {
$g_queries_array[$i][2] = true;
}
}
echo "\t", $t_unique_queries . ' unique queries executed.<br />', "\n";
if ( ON == config_get( 'show_queries_list' ) ) {
echo "\t", '<table>', "\n";
$t_total = 0;
for ( $i = 0; $i < $t_count; $i++ ) {
$t_time = $g_queries_array[$i][1];
$t_total += $t_time;
if ( true == $g_queries_array[$i][2] ) {
echo "\t", '<tr valign="top"><td style="color: red">', ($i+1), '</td><td style="color: red">', $t_time , '</td><td style="color: red">', htmlspecialchars($g_queries_array[$i][0]), '</td></tr>', "\n";
} else {
echo "\t", '<tr valign="top"><td>', ($i+1), '</td><td>'. $t_time . '</td><td>', htmlspecialchars($g_queries_array[$i][0]), '</td></tr>', "\n";
}
}
echo "\t", '<tr><td></td><td>', $t_total, '</td><td></td></tr>', "\n";
echo "\t", '</table>', "\n";
}
}
}
When requesting signup_page.php or lost_pwd_page.php, the function current_user_is_anonymous would be called, which suddenly leads to a redirect to the login_page.php page because no user is logged on. Encapsulating the code block in an if-statement helps to avoid the call of current_user_is_anonymous, and also avoids the display of the, in this particular case useless, short query statistics at the bottom of the page.
|
|
dmulk@yahoo.com 12-Apr-2005 17:51 |
#407
|
Let me start out by saying that this is the exact problem I am experiencing AND I am a complete novice when it comes to coding.
I must be doing something wrong, because when I cut and paste this code (using Notepad so the formatting stays the same) over the existing code, Mantis "hangs" and never brings you to a login prompt.
What am I doing wrong?
Thanks,
<D>
|
|
arthur@mol-ben.net 05-Nov-2005 19:29 |
#698
|
| I would like to validate username/pwd with secure connection to a mailserver (pop) to check if this user exist. I dont have ldapserver and users can come from different domains. Any clue? |
|
aa@aa.com 27-Jan-2006 10:09 |
#849
|
If you want set new user password by administrator, set
$g_allow_signup= OFF;
$g_send_reset_password= OFF;
at config_inc.php
This setting force set password by admin at create user time,
and no email is sent. |
|
mike_at_hm@hotmail.com 12-Feb-2006 18:37 |
#888
|
Hi,
I have been using Mantis for quite some time now, and I find it a great package. However, I have a few questions:
1. Can the login page be switched off completely?
2. Can the new account sign-up be automated (including the confirmation)? (Accounts injected from an external source).
Cheers,
Michael. |
|
konst (a) nt ru 23-May-2006 5:30 |
#1087
|
| Is it possible to add custom message on this page? |
|
marrruvijay2@yahoo.com 08-Jun-2006 2:27 |
#1128
|
Hi to all
iammcreating login page in PHP so, i need a basic steps to create a login pageplz send me the solution actually iam from java aspect plz
help me ok
bye with reguards vijay |
|
gunakar.p2@zensar.com 02-Jan-2007 5:58 |
#1328
|
Hi There!,
I just wanano that ,is it fine that a user give a common e-mail ID and differnt user-name ,and still he is able to get his account creted....
If yes I need to know the specific requirement.....
Thnks
Gk |
|
p_solanki83@yahoo.com 02-Feb-2007 2:46 |
#1392
|
| Is it possible to creat table with the name of 'table' in MYSQL.... |
|
|
| Last updated: Wed, 23 Jul 2008 - 15:39:38 |
|
|