Before I commit to a titanic search can someone tell me if you installation under CI2 has been discussed yet? Or is it just an obvious affair for real CI programmers?
Looking forward to using this library! or is it helper?
Thanks all!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 10, 2010 7:00pm
Subscribe [287]#871 / Apr 07, 2011 3:34am
Before I commit to a titanic search can someone tell me if you installation under CI2 has been discussed yet? Or is it just an obvious affair for real CI programmers?
Looking forward to using this library! or is it helper?
Thanks all!
#872 / Apr 07, 2011 10:53am
Nicholas,
It’s a library and it works fine under CI2. Someone did mention an error in 2.0.1 but never got back to me so if you have any problems feel free to email me.
#873 / Apr 12, 2011 10:20am
thank you very much for ur time expended working in this system, take me about 1 hour integrating with my app.
thanks again and best luck
Peter
#874 / Apr 14, 2011 7:10am
Greetings again!
I am using ion auth a lot in projects now. I absolutely love it.
Now I am doing something I cant seem to get it to do though.
How do I update someones password as an admin without knowing the previous one?
#875 / Apr 14, 2011 1:23pm
@Maglok : the easiest way is using phpmyadmin. Go to phpmyadmin go to the user on edit field and then in function block put md5 option and then next to that add you password.
#876 / Apr 14, 2011 1:27pm
I don’t think that would actually work.
I am trying to write a backend where admins that dont know how to work phpmyadmin can do it. Also I am sure ion auth uses a salt, thus just encoding a field is not going to work.
At the moment I have just edited the ion_auth model to not check on the old password before changing to the new one through the normal change_password function. Though I don’t really want to edit ion_auth ‘core’ files. 😊
#877 / Apr 15, 2011 9:13am
I have some users that cannot log in.
What is the best way to track down this issue?
There passwords seem to be ok, but the page just refreshes.
Should I update to the latest version?
I added some extra fields, what module do I need to be careful I do not overwrite?
Thanks
#878 / Apr 18, 2011 12:45am
Hi behemunds,
When try to using newest version of Ionauth with CI 2.0.2 and grocery CRUD, i got this error :
A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘group, groups.description AS group_description, meta.fullname, meta.cmnd, meta.p’ at line 1
SELECT users.*, groups.name AS group, groups.description AS group_description, meta.fullname, meta.cmnd, meta.phone FROM (users) LEFT JOIN meta ON users.id = meta.user_id LEFT JOIN groups ON users.group_id = groups.id WHERE `users`.`id` = ‘1’ LIMIT 1
Filename: D:\wamp\www\crud\system\database\DB_driver.php
Line Number: 330
Is this related with ion auth or just my mistake?
Thanks
#879 / Apr 18, 2011 1:37am
Ben can you or another grand master please critique this library (which is auto-loaded in autoload.php) and tell me if this code will actually work and not leave my cms open to the world?
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Check_logged_in {
public function __construct()
{
$CI =& get_instance();
$CI->load->library('ion_auth');
$CI->load->helper('url');
if (!$CI->ion_auth->logged_in())
{
redirect( base_url() . "index.php/auth/login");
}
}
}
?>Cheers.
#880 / Apr 18, 2011 12:11pm
Maglok,
Just pass the new password to update_user().
#881 / Apr 19, 2011 12:49am
Should we password protect models and not just controllers? Is that the newbest question ever?
#882 / Apr 19, 2011 9:40am
Hi Ben,
Have a noob question. Just need a suggestion if Ion Auth would be suitable for my requirement. My site should have three types of users. A user, seller and the admin. So is it suitable for me to use Ion Auth or is it only suitable for one type of user and an admin. Do I need to make a lot of change if I use Ion Auth?
Thanks.
#883 / Apr 20, 2011 5:34am
my bad .
has solved .. i did stupid thing XD
thanks for the library ben .
Regards,
#884 / Apr 20, 2011 7:44pm
I’m trying to keep my views organized into subfolders [views/auth, views/admin, etc..] and so I’m trying to get my “admin.php” controller to (I guess) “extend” ion auth; by simply calling it’s functions and adding my own from a separate controller (dashboard.php). How would I do this without putting views/auth into views/dashboard?
Thanks.
#885 / Apr 22, 2011 3:13pm
Happy Easter, Ben,
this morning - the session cookies expired over night – I got on two of three browsers these error messages:
A PHP Error was encountered Severity: Notice Message: Undefined property: Ion_auth_model::$ion_auth Filename: models/ion_auth_model.php Line Number: 844A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: models/ion_auth_model.php Line Number: 844Ein Datenbankfehler ist aufgetreten Error Number: 1064 Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei 'id` = '8'' in Zeile 1 UPDATE `users` SET `last_login` = 1270340970 WHERE ` IS NULL AND `id` = '8'I cannot figure out, why it’s only in two of three browsers. This is a bit confusing.
In the two browsers (FireFox and Safari)I have all the three cookies. In the other one (Opera) I have only the session cookie.Best regards
Bernd
I am still having this problem. I am running PHP 5.2, CI 2.0, Ion Auth, Firephp and Uh Oh!
ErrorException [ Notice ]: Undefined property: Practice::$ion_auth
SYSDIR/core/Model.php [ 50 ]
45 * @access private
46 */
47 function __get($key)
48 {
49 $CI =& get_instance();
50 return $CI->$key;
51 }
52 }
53 // END Model Class
54
55 /* End of file Model.php */This problem seems to creep in primarily when using IE7 (no issues with FF3, 4 or Chrome), though that doesn’t make much sense to me.
Practice Controller:
class Practice extends CI_Controller {
var $user;
var $game;
function __construct() {
parent::__construct();
// ION Auth
$this->load->library('Ion_auth');
$this->load->library('form_validation');
$this->load->library('session');
// Defaults
$this->load->helper('url');
$this->load->library('firephp');
// Models
//$this->load->model('Ion_auth_model');
//$this->load->model('Player');
$this->load->model('Practice_Game');Anyone have any ideas? Ive made adjustments to some of the places in Ion_auth to do an isset check on ->_extra_where. Here is the line just before the final error:
APPPATH/models/ion_auth_model.php [ 966 ] » CI_Model->__get(arguments)
key ion_auth
961 {
962 return FALSE;
963 }
964
965 //get the user
966 if (isset($this->ion_auth->_extra_where))
967 {
968 $this->db->where($this->ion_auth->_extra_where);
969 }
970
971 $query = $this->db->select($this->identity_column.', id, group_id')