Comments (9)
How is Ion Auth loaded in your Base_Controller during testing? What if so load ion auth in the stream class?
from codeigniter-ion-auth.
The ion_auth is loaded from autoload.php
/*
| -------------------------------------------------------------------
| Auto-load Packges
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array(APPPATH. 'third_party/ion_auth');
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array('database', 'session', 'form_validation', 'ion_auth');
from codeigniter-ion-auth.
What else have you tried to troubleshoot this? What if you manually load the package in this controller?
from codeigniter-ion-auth.
Yes, I tried to manually load the library in the Stream class constructor...
log_message('error','Before Loading ion_auth');
$this->load->library('ion_auth');
log_message('error','After Loading ion_auth');
log_message('error',isset($this->ion_auth) ? "Ion Auth Set":"Ion Auth not Set");
log_message('error',isset($this->ion_auth_model) ? "Ion Auth Model Set":"Ion Auth Model not Set");
In the log file I see -
ERROR - 2022-08-05 04:53:59 --> Before Loading ion_auth
ERROR - 2022-08-05 04:53:59 --> After Loading ion_auth
ERROR - 2022-08-05 04:53:59 --> Ion Auth Set
ERROR - 2022-08-05 04:53:59 --> Ion Auth Model not Set
But when I am trying the delete from the UI I get:
ERROR - 2022-08-05 04:56:39 --> Before Loading ion_auth
ERROR - 2022-08-05 04:56:39 --> After Loading ion_auth
ERROR - 2022-08-05 04:56:39 --> Ion Auth Set
ERROR - 2022-08-05 04:56:39 --> Ion Auth Model Set
from codeigniter-ion-auth.
Hmm maybe try loading the model directly in the controller?
from codeigniter-ion-auth.
Tried that too. The error goes away but the groups didn't get deleted in the following code -
$this->ion_auth->delete_group($groupid);
from codeigniter-ion-auth.
Try adding some logging at each step there that way. Eg, does the model actually get called even if there's no error, does the DB query run, etc
from codeigniter-ion-auth.
@benedmunds I notice the last commit on the library around 6 or 7 months ago we are using it regularly I am worried are you people maintaining it in the future.
from codeigniter-ion-auth.
Hey @akashposin , I’m still actively maintaining this but it’s fairly stable after all of these years and I don’t have any new features planned.
from codeigniter-ion-auth.
Related Issues (20)
- Help me, how to call auth controller HOT 3
- install with composer problem HOT 1
- .
- Security Issue: Potential timing attack when using '===' to compare password hashes HOT 1
- The number of logged in users or even the list of logged in HOT 1
- Problems with autentification HOT 1
- Feature suggestion remember me
- Issue when using remember password and password need to be rehash, remember_code = null and cookie remember_code fail to match HOT 1
- Description of getUsersGroups() method is incorrect HOT 2
- reset password not working properly on function forgotten_password_check($code) and email send HOT 17
- ionAuth as CI4 service? (question) HOT 2
- Users can still log in using "Remember Me" cookies when the feature was disabled HOT 1
- Automatically Login user after successful registration in Codeigniter-3 | Ion_auth HOT 1
- Force user change password HOT 2
- Different behavior of session handle in local versus remote server HOT 3
- Unable to send e-mail HOT 3
- IonAuth - Codeigniter 4 - not working in php 8.2 HOT 4
- Unable to rehashed the Password HOT 2
- No 3.x releases - why? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-ion-auth.