Skip to content

Commit

Permalink
login fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@178 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Feb 10, 2001
1 parent 9c3bf4c commit 692b634
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
8 changes: 5 additions & 3 deletions db_upgrade.sql
Expand Up @@ -76,7 +76,8 @@ CREATE TABLE mantis_project_table (
view_state set('public','private') DEFAULT 'public' NOT NULL,
description text NOT NULL,
PRIMARY KEY (id),
KEY id (id)
KEY id (id),
UNIQUE name (name)
);

INSERT INTO mantis_project_table VALUES ( '0000001', 'mantis', 'development', 'on', 'public', 'Mantis. Report problems with the actual bug tracker here. (Do not remove this account. You can set it to be disabled if you do not wish to see it)');
Expand Down Expand Up @@ -107,9 +108,10 @@ ALTER TABLE mantis_news_table ADD project_id INT (7) UNSIGNED ZEROFILL not null
# make changes to bug_table

ALTER TABLE mantis_bug_table CHANGE category category VARCHAR (32) not null;
ALTER TABLE mantis_bug_table CHANGE version version VARCHAR (32) DEFAULT 'none' not null
ALTER TABLE mantis_bug_table CHANGE version version VARCHAR (32) DEFAULT 'none' not null;

# make changes to user_table

ALTER TABLE mantis_user_table ADD login_count INT not null DEFAULT '0' AFTER access_level;
ALTER TABLE mantis_user_table CHANGE access_level access_level ENUM ('viewer','reporter','updater','developer','manager','administrator') DEFAULT 'viewer' not null
ALTER TABLE mantis_user_table CHANGE access_level access_level ENUM ('viewer','reporter','updater','developer','manager','administrator') DEFAULT 'viewer' not null;
ALTER TABLE mantis_user_table ADD UNIQUE(username);
13 changes: 13 additions & 0 deletions login_error_page.php3
Expand Up @@ -5,6 +5,9 @@
# See the README and LICENSE files for details
?>
<? include( "core_API.php" ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
Expand Down Expand Up @@ -54,6 +57,16 @@
<input type=checkbox name=f_perm_login>
</td>
</tr>
<tr bgcolor=<? echo $g_primary_color_light ?>>
<td>
<? echo $s_choose_project ?>:
</td>
<td>
<select name=f_project_id>
<? print_project_option_list() ?>
</select>
</td>
</tr>
<tr>
<td align=center colspan=2>
<input type=submit value="<? echo $s_login_button ?>">
Expand Down
1 change: 1 addition & 0 deletions strings_english.php
Expand Up @@ -221,6 +221,7 @@
### $s_username # defined above
### $s_password # defined above
$s_save_login = "Save Login";
### $s_choose_project # defined above
$s_login_button = "Login";

### login_page.php3
Expand Down

0 comments on commit 692b634

Please sign in to comment.