levmorozov / mii-auth
This package is abandoned and no longer maintained.
The author suggests using the levmv/mii-auth package instead.
Mii auth extension
v1.3.0
2023-02-01 10:30 UTC
Requires
- php: >=8.0
- ext-mbstring: *
- levmv/mii: ~1.11
Requires (Dev)
- hybridauth/hybridauth: dev-master
Suggests
- hybridauth/hybridauth: Allows social authentification
This package is auto-updated.
Last update: 2023-02-01 10:30:39 UTC
README
Sql tables example:
CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(128) NOT NULL, `password` char(60) CHARACTER SET ascii NOT NULL DEFAULT '', `name` varchar(64) NOT NULL, `surname` varchar(64) NOT NULL, `logins` int(10) unsigned NOT NULL DEFAULT 0, `last_login` int(10) unsigned DEFAULT NULL, `roles` int(10) unsigned NOT NULL, `created` int(10) unsigned NOT NULL, `verify_date` int(10) unsigned DEFAULT NULL, `verify_code` varchar(128) CHARACTER SET ascii DEFAULT '', `email_verified` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `user_tokens` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL, `token` char(32) CHARACTER SET ascii NOT NULL DEFAULT '', `expires` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_token` (`token`), KEY `fk_user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `user_socials` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `network` enum('fb','vk','ok','ggl','ya','gh', 'ig') NOT NULL DEFAULT 'vk', `identity` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `identity` (`identity`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;