Questions tagged [ion-auth]

Ion Auth is a user library for CodeIgniter.

More information can be found here : https://github.com/benedmunds/CodeIgniter-Ion-Auth

249 questions
4
votes
1 answer

CodeIgniter 2, Ion Auth gives a CSRF error message upon profile edit

I've been using CodeIgniter version 2.1.4 with Ion Auth for quite some time and everything was working great. Yesterday, I updated Ion Auth to the latest version and now I get a CSRF error whenever I try to "edit" any user profile. "This form post…
Sparky
  • 98,165
  • 25
  • 199
  • 285
4
votes
2 answers

redirect to previous page after login ion_auth codeigniter

I am using codeigniter and Ion_auth for my application. Got them both installed and they work just fine... This is the first time i really had to go in and do a custom redirect with codeigniter(newbie at codeigniter, also not a php master but pretty…
John Stapleton
  • 160
  • 2
  • 14
4
votes
3 answers

What is proper way to secure CodeIgniter 2 application with authentication?

I have Ion Auth properly installed and working on my server. I also have the default CodeIgniter 2 "news" tutorial working in the same CI installation. I'm just playing around and curious about the proper way to use the authentication system to…
Sparky
  • 98,165
  • 25
  • 199
  • 285
4
votes
8 answers

Can I set Ion auth to login by username OR Email

I know I can set ion auth to login by username in the config, I also know I can set it to login by email in the config. Is there a simple way to set it it to use either automatically?
SwiftD
  • 5,769
  • 6
  • 43
  • 67
3
votes
3 answers

Creating a login form in CodeIgniter based on Ion Auth library

I'm still learning my way around in CodeIgniter. I'd like to create a login form in my codeigniter application based on Ion Auth library. I have installed the library following the instruction and it works fine when navigating to auth/login,…
farjam
  • 2,089
  • 8
  • 40
  • 77
3
votes
2 answers

How to get users list in codeigniter?

I am trying to get list of users from Users table in codeigniter. My problem is that if am using following code than try to print out the result, it's giving me blank array while printing query using last_query() function and running this query in…
DhavalThakor
  • 490
  • 5
  • 15
3
votes
0 answers

how to allow multiple or sub accounts in codeigniter using ion auth

i have created a website which allows user to register and pay subscriptions. I have 3 user groups, comprising of admins, editors and common members. i want when a member joins, they can be able to add child-accounts to their account which will get…
simba
  • 71
  • 5
3
votes
2 answers

Error 404 on logout function (Ion Auth) using Codeigniter

Calling this function to redirect me to the login webpage throw me '404 Error : the page you requested was not found'. I have followed the same steps that i followed for another application and it worked fine. Any Ideas? Link
  • Jose
    • 310
    • 1
    • 12
    3
    votes
    1 answer

    CodeIgniter 3 - Ion Auth "Too many redirects"

    I'm creating a login system with Ion Auth. I have this code:
    Damian
    • 525
    • 2
    • 11
    • 24
    3
    votes
    2 answers

    CodeIgniter Ion Auth: How is is_admin() working?

    I'm using the Ion_auth for CodeIgniter in my project auth library. I'm trying to make a similar function as is_admin() for other user types (there are three user types other than the admin) to check whether the logging in user is of one of those…
    CobaltBabyBear
    • 2,188
    • 6
    • 26
    • 47
    3
    votes
    3 answers

    (Codeigniter) Ion Auth CSRF Error:This form post did not pass our security checks (when loading views)

    I'm using Ion Auth authentication library in Codeigniter. When I load my footer view, I get an CSRF Error(This form post did not pass our security checks). When I remove the footer view, it works fine though! Is there anything I'm doing wrong here?…
    Faizal
    • 287
    • 1
    • 3
    • 11
    3
    votes
    1 answer

    ionauth login maximum attempts implementation

    I have just started using ionauth, and I am trying to implement the maximum login attempts feature. Problem is, I can't seem to find any documentation regarding this function on the documentation. I figured out the function to call to check if…
    Ahmed-Anas
    • 5,471
    • 9
    • 50
    • 72
    3
    votes
    2 answers

    Opinions on Dual-Salt authentication for low sensitivity user accounts?

    I am currently working on a web project requiring user accounts. The application is CodeIgniter on the server side, so I am using Ion Auth as the authentication library. I have written an authentication system before, where I used 2 salts to secure…
    Stephen Wright
    • 2,908
    • 4
    • 19
    • 28
    3
    votes
    3 answers

    CodeIgniter Ion_auth check login

    how can i check if user logged in or not in view ?? something like this: if ($this->ion_auth->logged_in()) { // do something .. } else { // do something else .. } and how can i get user data to variable ? thanks a lot.
    MAMProgr
    • 400
    • 5
    • 12
    2
    votes
    1 answer

    Ion Auth update_user() does not update user

    I'm trying to update an user with update_user function. But I have got this error. Fatal error: Uncaught exception ‘Exception’ with message ‘Undefined method on_auth::update_user() called’ My code is $id = 8; $data = array( 'first_name' =>…
    SNaRe
    • 1,997
    • 6
    • 32
    • 68
    1
    2
    3
    16 17