small fixes to the code
This commit is contained in:
parent
e815ac9777
commit
fd88068f19
@ -42,6 +42,9 @@ class DBUser extends Database
|
||||
//Email adres is niet in gebruik, return false
|
||||
return $user;
|
||||
}
|
||||
else if($query->rowCount() == 0){
|
||||
trigger_error("Email $email not found in DB", E_USER_ERROR);
|
||||
}
|
||||
else{
|
||||
//Email is al in gebruik of komt meer dan een keer voor. Beide gevallen zijn een probleem dus return true.
|
||||
trigger_error("Multiple users for email $email returned by DB, value should be unique", E_USER_ERROR);
|
||||
|
||||
@ -56,8 +56,8 @@ class TA_CreateDB extends TestAction{
|
||||
`email` varchar(256) NOT NULL,
|
||||
`password` varchar(256) NOT NULL,
|
||||
`reg_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`login_date` datetime NOT NULL,
|
||||
`reg_ip` varchar(256) NOT NULL,
|
||||
`login_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`reg_ip` varchar(256) NOT NULL DEFAULT '127.0.0.1',
|
||||
`permissions` int(11) NOT NULL DEFAULT '-1',
|
||||
`active` tinyint(1) DEFAULT '0',
|
||||
PRIMARY KEY (`ID`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user