Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ci4-cms-erp/ci4ms-mongodb

We made a modular management system. This system has two database type MongoDB and MYSQL. Very simple coding and you can add your modules and plugins follow with document.
https://github.com/ci4-cms-erp/ci4ms-mongodb

auth authentication codeigniter php rbac roles

Last synced: 3 months ago
JSON representation

We made a modular management system. This system has two database type MongoDB and MYSQL. Very simple coding and you can add your modules and plugins follow with document.

Awesome Lists containing this project

README

        

# Login steps with mongodb in Codeigniter 4

## Features

This is meant to be a one-stop shop for 99% of your web-based authentication needs with CI4. It includes the following primary features:


  • Password-based authentication with remember-me functionality for web apps
    Flat RBAC per NIST standards, described here and here.

  • All views necessary for login, registration and forgotten password flows.

  • Publish files to the main application via a CLI command for easy customization

  • Email-based account verification

## Installation
You must have Mongo Driver and Composer. Follow these links for installation:

**you must do in terminal**

if you are installing to host, you must change file permissions user and group.

chown user:group codeigniter_project_file


if do you want manual install you can follow these steps.
```
mongo

use yourDatabase

db.createUser({
user: "userName",
pwd: passwordPrompt(), // Or "cleartextPassword"
roles: [{role: "readWrite", db: "yourDatabase"}]
});
```

Create a config file at app/Config. File name should be MongoConfig.php.

```
Congratulations!


### Automatic Installation
After made settings. you should go link `http://site/installation` follow form attributes. Finish installation automaticly must detele installation module. If not delete installation module you must follow this steps:


  • you must delete modules/installation module

  • you should update app/Config/Autoload.php. you will see a note for update.

# In preparation