Skip to content

Update Admin.PHP#43

Open
Benny123-cell wants to merge 1 commit intomasterfrom
Benny123-cell-patch-1
Open

Update Admin.PHP#43
Benny123-cell wants to merge 1 commit intomasterfrom
Benny123-cell-patch-1

Conversation

@Benny123-cell
Copy link
Contributor

@Benny123-cell Benny123-cell commented Jun 1, 2020

The first time we do it is on May 15th,we compare the data base and the source code named Admin.PHP,and change to these as follow(By checking the data establishment of the database, there is no problem in the fields of the mailbox. Therefore, we judge that the error is due to the verification of the mailbox. We added the verification of the mailbox to realize the login function of the mailbox):

Database codes:
CREATE TABLE users_table (
User_ID int(11) NOT NULL,
Email varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Password varchar(50) CHARACTER SET utf8 DEFAULT NULL,
Full_Name varchar(50) CHARACTER SET utf8 DEFAULT NULL,
UserType varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Student_ID varchar(500) COLLATE utf8mb4_bin DEFAULT NULL,
Passport_Number varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Status varchar(30) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

Full_Name Email

Passport_Number / ID (Used as Intial Password)


User Type :
Lecturer
T/A

function check_email($email){

	if (preg_match('/^[\w\.-]+@([0-9a-zA-Z]+\.)?[0-9a-zA-Z]+\.[a-z]{2,3}$/',$email)){
			return true;
		}
	else{
		return false;
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant