mirror of
https://github.com/itflow-org/itflow
synced 2026-11-19 10:57:24 +00:00
Add agent invites: New User now emails an invite by default so the agent chooses their own password on the new join.php page, and Set a password now stays as the other option with the email that contained the password removed; database 3.5.1 adds user_invites with only a hash of the link's token kept and the vault master key locked under that token until it is accepted, cancelled or runs out; new functions/user_invite.php; adds the Invited view to Users with Send again, Get the link (shown once, also used when mail is not set up) and Cancel invite; waiting invites count toward the agent user limit and a role with waiting invites cannot be archived; the Get started team step invites when mail is set up; the quick look shows whose invite an agent joined from; replaces the new account email preview with the invite email; the nightly job clears invites cancelled or run out more than 90 days ago; adds userAvatarStore(); updates the changelog
This commit is contained in:
31
db.sql
31
db.sql
@@ -4052,6 +4052,37 @@ CREATE TABLE `user_client_permissions` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `user_invites`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `user_invites`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `user_invites` (
|
||||
`invite_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`invite_email` varchar(200) NOT NULL,
|
||||
`invite_name` varchar(200) NOT NULL,
|
||||
`invite_role_id` int(11) NOT NULL DEFAULT 0,
|
||||
`invite_force_mfa` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`invite_client_access` text DEFAULT NULL,
|
||||
`invite_avatar` varchar(200) DEFAULT NULL,
|
||||
`invite_token_hash` char(64) NOT NULL DEFAULT '',
|
||||
`invite_vault` varchar(255) NOT NULL DEFAULT '',
|
||||
`invite_expires_at` datetime NOT NULL,
|
||||
`invite_sent_at` datetime DEFAULT NULL,
|
||||
`invite_sent_count` int(11) NOT NULL DEFAULT 0,
|
||||
`invite_created_by` int(11) NOT NULL DEFAULT 0,
|
||||
`invite_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`invite_accepted_at` datetime DEFAULT NULL,
|
||||
`invite_user_id` int(11) NOT NULL DEFAULT 0,
|
||||
`invite_cancelled_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`invite_id`),
|
||||
KEY `invite_email` (`invite_email`),
|
||||
KEY `invite_user_id` (`invite_user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `user_role_permissions`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user