codeigniter4-auth icon indicating copy to clipboard operation
codeigniter4-auth copied to clipboard

Social Login

Open brevv99 opened this issue 5 years ago • 3 comments

Please, add the social login features in the next update, im still looking for the social authentication library in codeigniter 4, but i can't find it.

brevv99 avatar Nov 15 '20 11:11 brevv99

I recommend you to use this: https://hybridauth.github.io/

divpusher avatar Nov 15 '20 13:11 divpusher

Hi! I did fresh CI4 install. Created virtualhost, created new database, check db connection. Everything works fine. Then followed instructions to install library (including setting and testing mailtrap.io...) Then, as instructed I ran 'php spark migrate' in order to create tables and got following output:

CodeIgniter CLI Tool - Version 4.0.4 - Server-Time: 2020-12-19 15:17:30pm

Running all new migrations... Done

In database I found one table called migrations. I visited /register and got 404 with following message:

Controller or its method is not found: \App\Controllers\Register::index

I didn't skip any step in instruction yet I can't figure out what is wrong.

stipicak avatar Dec 19 '20 21:12 stipicak

Run this SQL Query when on step php spark migrate

CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(191) NOT NULL DEFAULT '',
  `new_email` varchar(191) DEFAULT NULL,
  `password_hash` varchar(191) NOT NULL DEFAULT '',
  `name` varchar(191) NOT NULL DEFAULT '',
  `activate_hash` varchar(191) DEFAULT '',
  `reset_hash` varchar(191) DEFAULT NULL,
  `reset_expires` bigint(20) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_at` bigint(20) DEFAULT NULL,
  `updated_at` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

iello avatar Feb 03 '21 12:02 iello