Comments (7)
Are you using this locally or on the web? You won't usually get an IP locally.
from codeigniter-ion-auth.
On the web. The ci_session table gets updated with the IP, but nothing in the users table.
from codeigniter-ion-auth.
Hey, sorry I forgot and had to look it up in the code.
It only stores the IP on user registration. Personally, I've never needed it but it's a leftover from Redux Auth...
from codeigniter-ion-auth.
Thx. If it's not something on your roadmap, I guess we'll just need to update code to store it on logins. It makes sense to store both the last_login and the ip it was from.
from codeigniter-ion-auth.
Yea, you should just add it to the meta data and update it on login. Then you'll have both the registration ip and the login ip.
from codeigniter-ion-auth.
The column is already there in the users table. Why wouldn't we just want to modify the login code of Ion Auth to include adding the IP to that column on each login (just like the last_login timestamp) rather than creating yet another column in another table? Seems a tad senseless. Please enlighten us if you have other rationale; we're all ears.
from codeigniter-ion-auth.
I don't have a use case but the reason for me is backwards compatibility. Since that functionality has worked that way since Redux there's a very good chance people will use it for something and expect it to work the way it does now. If we change it now then we'd likely break somebody's functionality on upgrade.
Feel free to change it if that's what you want for your project but I would recommend using meta data so you can easily upgrade in the future.
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
- Error when called from phpunit HOT 9
- 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.