arif-rh / ci4-auth Goto Github PK
View Code? Open in Web Editor NEWPHPAuth for CodeIgniter 4
License: MIT License
PHPAuth for CodeIgniter 4
License: MIT License
Where i can find the docs on how to implement this library?
Also this library have permissions, or only user roles?
Database Config DBPrefix is not included in query:
$sql = "
INSERT INTO " . $config->userTable . " (email
, password
, group_id
, role_id
, active
) VALUES
('[email protected]', '" . $password . "', 1, 1, 1);
";
$this->db->query("INSERT INTO " . $config->userGroupTable . " (group
, description
) VALUES ('Super Admin', 'Super Admin'), ('Admin', 'Admin'), ('User', 'User');");
$this->db->query("INSERT INTO " . $config->userRoleTable . " (group_id
, role
, description
) VALUES (1, 'Administrator', 'Administrator'), (2, 'Web Admin', 'Web Admin'), (3, 'User', 'User');");
}
Thank you for sharing your great work. For privacy/security reasons, either the hard coded BCC email [email protected]
should be removed from src/Auth.php
, or it should be mentioned in README.md
.
Hello,
I've tried today the library ... and I have a small issue if you can help.
I've done the migrate and everything, but when I wanted to test the login:
$login = new Auth\Auth();
return $login->login("[email protected]", "pass");
It's saying Unable to connect to the database . I mention that the database it's connected to ci4 in both .env and /app/Config/Database.php files.
Any ideas ?
Regards,
Anwar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.