Giter Site home page Giter Site logo

Comments (7)

benedmunds avatar benedmunds commented on August 21, 2024

Are you using this locally or on the web? You won't usually get an IP locally.

from codeigniter-ion-auth.

rhopek avatar rhopek commented on August 21, 2024

On the web. The ci_session table gets updated with the IP, but nothing in the users table.

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on August 21, 2024

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.

rhopek avatar rhopek commented on August 21, 2024

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.

benedmunds avatar benedmunds commented on August 21, 2024

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.

rhopek avatar rhopek commented on August 21, 2024

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.

benedmunds avatar benedmunds commented on August 21, 2024

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)

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.