Giter Site home page Giter Site logo

pro-dev-ph / codeigniter4-auth-and-user-management Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 21.0 3.26 MB

A simple authentication and user management system for CodeIgniter 4

License: Apache License 2.0

PHP 97.79% Hack 0.03% CSS 1.09% JavaScript 0.90% HTML 0.03% Smarty 0.17%
codeigniter4 user-management

codeigniter4-auth-and-user-management's People

Contributors

pro-dev-ph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

codeigniter4-auth-and-user-management's Issues

headers already sent by

I am trying to run the project on my computer. I get the following errors:

Deprecated: Optional parameter $body declared before required parameter $userAgent is implicitly treated as a required parameter in D:\laragon\www\pergola\system\HTTP\IncomingRequest.php on line 161

Deprecated: filter_var(): Passing null to parameter #3 ($options) of type array|int is deprecated in D:\laragon\www\pergola\system\HTTP\Request.php on line 439

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at D:\laragon\www\pergola\app\Config\Events.php:33) in D:\laragon\www\pergola\system\Debug\Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'D:\laragon\www\...', 164) #1 D:\laragon\www\pergola\system\Debug\Exceptions.php(164): header('HTTP/1.1 500 In...', true, 500) #2 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 {main} thrown in D:\laragon\www\pergola\system\Debug\Exceptions.php on line 164

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at D:\laragon\www\pergola\app\Config\Events.php:33) in D:\laragon\www\pergola\system\Debug\Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'D:\laragon\www\...', 164) #1 D:\laragon\www\pergola\system\Debug\Exceptions.php(164): header('HTTP/1.1 500 In...', true, 500) #2 D:\laragon\www\pergola\system\Debug\Exceptions.php(224): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #4 {main} thrown in D:\laragon\www\pergola\system\Debug\Exceptions.php on line 164

I run this project using PHP 8.1. I still get the "fatal" errors even though tried to fix the "deprecated errors".

XAMPP + win 10

Hi.
Tring to run this on Win 10 using XXAMP . Checked sys requirements and db but http://localhost/users/public/ ... returns this ....

Deprecated: Required parameter $userAgent follows optional parameter $body in C:\xampp\htdocs\users\system\HTTP\IncomingRequest.php on line 161

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\users\app\Config\Events.php:33) in C:\xampp\htdocs\users\system\Debug\Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'C:\xampp\htdocs...', 164) #1 C:\xampp\htdocs\users\system\Debug\Exceptions.php(164): header('HTTP/1.1 500 In...', true, 500) #2 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 {main} thrown in C:\xampp\htdocs\users\system\Debug\Exceptions.php on line 164

Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\users\app\Config\Events.php:33) in C:\xampp\htdocs\users\system\Debug\Exceptions.php:164 Stack trace: #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'Cannot modify h...', 'C:\xampp\htdocs...', 164) #1 C:\xampp\htdocs\users\system\Debug\Exceptions.php(164): header('HTTP/1.1 500 In...', true, 500) #2 C:\xampp\htdocs\users\system\Debug\Exceptions.php(224): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #3 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #4 {main} thrown in C:\xampp\htdocs\users\system\Debug\Exceptions.php on line 164

Suggestions

Hello,

Very nice addon for CI4. Few suggestions if you need any:

  • User impersonation (Login as X)
  • Password resend
  • 2FA
  • User sessions (force termination)
  • Read only profile fields
  • User groups (Active, verified, banned etc.)

Thank you for you work!

Email

Pls explain how to add email for account activation in codeigniter4-auth-and-user-management.

Forgot Password

I was getting an invalid email format when posting the forgot password form. Solution: The name="email" attribute is missing from the form input in app/Views/auth/auth/forgot.php

I then got a file not found error in the reset password email method. Solution: Replace the paths in app/Helpers/auth_helper.php

Replace: view('Views\emails[file]')
With: view('auth/emails/[file]')

Registration Controller

on register action is trying to get the view

auth/auth/register

but this file doesn't exist, it should be
auth/register

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.