· 7 years ago · Jan 13, 2019, 09:40 AM
1How to configure user authentication with dynamic user attributes?
2CREATE TABLE IF NOT EXISTS `auth_users` (
3 `id` int(11) NOT NULL,
4 UNIQUE KEY `id` (`id`)
5) ENGINE=MyISAM DEFAULT CHARSET=latin1;
6
7CREATE TABLE IF NOT EXISTS `auth_user_attributes` (
8 `user_id` int(11) NOT NULL,
9 `attribute` text NOT NULL,
10 `value` text NOT NULL
11) ENGINE=MyISAM DEFAULT CHARSET=latin1;
12
13Array(
14 'fullname' => 'José Moreira',
15 'username' => 'Cuss',
16 ...
17)