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
14
votes
4 answers

How to prevent auto logout in codeigniter?

i am using codeigniter with ion_auth configured ,and MySQL as back-end, my app run smoothly but sometime/not randomly when i call add/update functions it automatically log me out. i am working on it for last 1 months but found no solution so far…
Abdul Manan
  • 2,255
  • 3
  • 27
  • 51
10
votes
1 answer

Why doesn't the login session "stick" when login in using "ionic serve" window but works when I point the browser to the www folder?

I am using Ionic to build a login system on top of Codeigniter/Ion_Auth/codeigniter-restclient and when I try to login from "ionic server" the login works but the next api request to the logged_in() method returns false. The same thing works…
10
votes
1 answer

IonAuth - seems to be randomly logging me out

I'm using ionAuth & it seems to be logging me out almost randomly? I'm using Codeigniter v2.1.4 - it logs in perfect fine however ionAuth seems to log out at random intevals, is there a way to force the session to stay active until I call the…
Zabs
  • 13,852
  • 45
  • 173
  • 297
7
votes
2 answers

Phonegap & Jquery mobile app to use Codeigniter Ion Auth backend for login

I already have CRUD web application which is build using Codeigniter PHP framework and Ion Auth authentication library (for Codeigniter). So users needs to log-in to use the site etc. Now Im building small mobile app using Phonegap & jQuery mobile…
devha
  • 3,307
  • 4
  • 28
  • 52
7
votes
5 answers

Retrieve the group id of user in Ion Auth - Codeigniter

I am using Ion Auth for my codeigniter application and all seems good except for one thing. I need to display a list of users along with the groups they are in. How can I retrieve the group id of a particular user without making my own models and…
WebNovice
  • 2,230
  • 3
  • 24
  • 40
6
votes
1 answer

Login with Ion Auth both Username and Email

I am using CodeIgniter. Now I have integrated Ion auth in CodeIgniter but I am facing the problem that how to log in with both Username and Email but ion auth accept only at a time with one identity to log in with Username OR Email. How to login…
Salman Iqbal
  • 442
  • 5
  • 23
6
votes
4 answers

how can a page redirect users back to previous page if they try to access the page via url?

I have a login page which won't be accessible if user is already logged in. So login page tries to redirect logged in users back to the page where they came from. Redirect works if users click a link to go to a page. Problem is if users are in…
user1906399
  • 753
  • 1
  • 13
  • 27
6
votes
1 answer

Password validation using ion auth in CodeIgniter

I am almost done with a project using codeigniter and ion_auth for authentication. I can't figure out this little issue: When the user wants to change the password, I have the fields OLD_PASSWORD and NEW_PASSWORD. OLD_PASSWORD has to match the…
Caio Mar
  • 2,344
  • 5
  • 31
  • 37
5
votes
1 answer

Codeigniter logging users out at random?

I'm building an application using Codeigniter 3, but users keep getting logged out by random. I thought it might be an issue with using AJAX, as I've read that was a bit buggy, but it happens just randomly while browsing etc, and not any specific…
frobak
  • 557
  • 2
  • 11
  • 30
5
votes
2 answers

Codeigniter Ion Auth editing users table

I'm new to Codeigniter and am just learning about the ion auth authentication system. I just have a few questions about it: 1) Is it possible to modify the default users table? (and would you advise for or against it?) I understand that there may be…
Gareehc
  • 61
  • 1
  • 3
5
votes
1 answer

Why doesn't Codeception's PhpBrowser follow a "Reload" header?

This is happening to me in a real CodeIgniter project in the Ion Auth authentication library, but for the sake of clarity, I have reduced it to it's simplest form. The script: I have this one line script located at…
Jordan Eldredge
  • 1,587
  • 1
  • 19
  • 25
5
votes
2 answers

CodeIgniter 2 and Ion Auth - edit own user account

I am using the latest Ion Auth files along with the latest version of CodeIgniter 2. There is a function called edit_user within the auth.php Controller file. This function is restricted to use only by members within the "Admin" group, and any…
Sparky
  • 98,165
  • 25
  • 199
  • 285
4
votes
1 answer

CodeIgniter with Ion AUTH login not remembered

I'm working on CodeIgniter login with ION auth plugin. I don't know why, but I have this behavior: I fill login form, send it, user is matched, CI save this data into "user_data" column in default_ci_sessions table and I reload page and user is…
Jan Kožušník
  • 683
  • 3
  • 16
  • 30
4
votes
1 answer

Codeigniter Ion Auth generating a password

In an app i am making i need to edit and create some passwords with haste and i think i have found a way but i doubt its correctness. I dug through ion auth and found this function in the ion_auth_model /** * Hashes the password to be stored in…
user3272483
  • 408
  • 3
  • 13
4
votes
2 answers

Codeigniter ion auth forgot password not sending email

If I submit to reset the new password to my email, CodeIgniter is not sending mail. But it's returning a message that Password Reset Email Sent. So it doesn't trigger an error. I'm using CodeIgniter 2.1.4 and IonAuth 2.5.2 $config['use_ci_email'] =…
psab_72
  • 51
  • 1
  • 7
1
2 3
16 17