Browse Source
- fixed both SQL files - fixed `list_pms()` - fixed `delete_pm()` - updated CHANGELOG - added abilty to send `system` PM's for `send_pm()` & `send_pms()` - changed `name` to `username` in aauth_users table - changed `name` to `username` in all user related functions - changed `$name` to `$username` in `create_user()` & `update_user()` - added `user_exist_by_username()` - changed `user_exist_by_name()` to an alias of `user_exist_by_username()`develop v2.5.0-alpha.6
4 changed files with 52 additions and 32 deletions
@ -95,7 +95,7 @@ CREATE TABLE `aauth_users` ( |
|||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
||||||
`email` varchar(100) COLLATE utf8_general_ci NOT NULL, |
`email` varchar(100) COLLATE utf8_general_ci NOT NULL, |
||||||
`pass` varchar(64) COLLATE utf8_general_ci NOT NULL, |
`pass` varchar(64) COLLATE utf8_general_ci NOT NULL, |
||||||
`name` varchar(100) COLLATE utf8_general_ci, |
`username` varchar(100) COLLATE utf8_general_ci, |
||||||
`banned` tinyint(1) DEFAULT '0', |
`banned` tinyint(1) DEFAULT '0', |
||||||
`last_login` datetime DEFAULT NULL, |
`last_login` datetime DEFAULT NULL, |
||||||
`last_activity` datetime DEFAULT NULL, |
`last_activity` datetime DEFAULT NULL, |
||||||
@ -112,7 +112,7 @@ CREATE TABLE `aauth_users` ( |
|||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
-- Records of aauth_users |
-- Records of aauth_users |
||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
INSERT INTO `aauth_users` VALUES ('1', '[email protected]', 'dd5073c93fb477a167fd69072e95455834acd93df8fed41a2c468c45b394bfe3', 'Admin', '0', null, null, null, null, null, null, null, null, null, '0'); |
INSERT INTO `aauth_users` VALUES ('1', '[email protected]', 'dd5073c93fb477a167fd69072e95455834acd93df8fed41a2c468c45b394bfe3', 'Admin', '0', null, null, null, null, null, null, null, null, '0'); |
||||||
|
|
||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
-- Table structure for `aauth_user_to_group` |
-- Table structure for `aauth_user_to_group` |
||||||
@ -168,7 +168,7 @@ CREATE TABLE `aauth_group_to_group` ( |
|||||||
CREATE TABLE IF NOT EXISTS `aauth_login_attempts` ( |
CREATE TABLE IF NOT EXISTS `aauth_login_attempts` ( |
||||||
`id` int(11) NOT NULL AUTO_INCREMENT, |
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||||
`ip_address` varchar(39) DEFAULT '0', |
`ip_address` varchar(39) DEFAULT '0', |
||||||
`timestamp` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
`timestamp` datetime DEFAULT NULL, |
||||||
`login_attempts` tinyint(2) DEFAULT '0', |
`login_attempts` tinyint(2) DEFAULT '0', |
||||||
PRIMARY KEY (`id`) |
PRIMARY KEY (`id`) |
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
||||||
|
@ -95,7 +95,7 @@ CREATE TABLE `aauth_users` ( |
|||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
||||||
`email` varchar(100) COLLATE utf8_general_ci NOT NULL, |
`email` varchar(100) COLLATE utf8_general_ci NOT NULL, |
||||||
`pass` varchar(60) COLLATE utf8_general_ci NOT NULL, |
`pass` varchar(60) COLLATE utf8_general_ci NOT NULL, |
||||||
`name` varchar(100) COLLATE utf8_general_ci, |
`username` varchar(100) COLLATE utf8_general_ci, |
||||||
`banned` tinyint(1) DEFAULT '0', |
`banned` tinyint(1) DEFAULT '0', |
||||||
`last_login` datetime DEFAULT NULL, |
`last_login` datetime DEFAULT NULL, |
||||||
`last_activity` datetime DEFAULT NULL, |
`last_activity` datetime DEFAULT NULL, |
||||||
@ -112,7 +112,7 @@ CREATE TABLE `aauth_users` ( |
|||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
-- Records of aauth_users |
-- Records of aauth_users |
||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
INSERT INTO `aauth_users` VALUES ('1', '[email protected]', '$2y$10$h19Lblcr6amOIUL1TgYW2.VVZOhac/e1kHMgAwCubMTlYXZrL0wS2', 'Admin', '0', null, null, null, null, null, null, null, null, null, '0'); |
INSERT INTO `aauth_users` VALUES ('1', '[email protected]', '$2y$10$h19Lblcr6amOIUL1TgYW2.VVZOhac/e1kHMgAwCubMTlYXZrL0wS2', 'Admin', '0', null, null, null, null, null, null, null, null, '0'); |
||||||
|
|
||||||
-- ---------------------------- |
-- ---------------------------- |
||||||
-- Table structure for `aauth_user_to_group` |
-- Table structure for `aauth_user_to_group` |
||||||
@ -168,7 +168,7 @@ CREATE TABLE `aauth_group_to_group` ( |
|||||||
CREATE TABLE IF NOT EXISTS `aauth_login_attempts` ( |
CREATE TABLE IF NOT EXISTS `aauth_login_attempts` ( |
||||||
`id` int(11) NOT NULL AUTO_INCREMENT, |
`id` int(11) NOT NULL AUTO_INCREMENT, |
||||||
`ip_address` varchar(39) DEFAULT '0', |
`ip_address` varchar(39) DEFAULT '0', |
||||||
`timestamp` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
`timestamp` datetime DEFAULT NULL, |
||||||
`login_attempts` tinyint(2) DEFAULT '0', |
`login_attempts` tinyint(2) DEFAULT '0', |
||||||
PRIMARY KEY (`id`) |
PRIMARY KEY (`id`) |
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
||||||
|
Loading…
Reference in new issue