Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]Ben Edmunds[/eluser]
Mantra of Doom,

You already have the user id when you get_users_array so why not build your link with the ID instead of the username and just display the username?

Or if the username is your identity you can use $this->ion_auth->profile($username) to get most of the user's info.

[eluser]Mantra of Doom[/eluser]
I got it working now, thanks guys. Basically, my problem boiled down to the fact that I get confused when getting results out of an array. Thanks for all the help, I'm learning a lot by reading this thread.

[eluser]Unknown[/eluser]
I've got 3 questions:

I am wondering if I could extend your auth model and overwrite some of the functions in there to add more customisability for example allowing each user to have multiple nicknames/aliases using an associative table.

If so, how should I do it as I'm reluctant to edit the model then find out later that an update would require me to re-do all the changes again.

Also on the database side for multiple group memberships, are you going to redesign the DB with associative tables and relationships? If you are, will you also provide upgrade codes to migrate the existing group id info from the users to the associative table?

Thanks

[eluser]Glazz[/eluser]
Hello,

I've installed ion auth yesterday, and it was working good, without any errors, today when i went to localhost to work on the website i get these two errors
http://awesomescreenshot.com/0b55h4ra7

These errors only show up once per session, don't know why =\

The only thing i have modified was table names, all the 3, the controller name and the view name, but it was working without any errors.

Using CI 2


Thanks!



Edit:

Some debug info:
Quote:DEBUG - 2011-01-04 21:01:20 --> Config Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Hooks Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Unicode Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Unicode Class - UTF-8 Support Enabled
DEBUG - 2011-01-04 21:01:20 --> URI Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Router Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Output Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Input Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Global POST and COOKIE data sanitized
DEBUG - 2011-01-04 21:01:20 --> Language Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Loader Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: url_helper
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: byte_convert_helper
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: form_helper
DEBUG - 2011-01-04 21:01:20 --> Language file loaded: language/english/fusephase_lang.php
DEBUG - 2011-01-04 21:01:20 --> Database Driver Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Session Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: string_helper
DEBUG - 2011-01-04 21:01:20 --> A session cookie was not found.
DEBUG - 2011-01-04 21:01:20 --> Session routines successfully run
DEBUG - 2011-01-04 21:01:20 --> Whois Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Session class already loaded. Second attempt ignored.
DEBUG - 2011-01-04 21:01:20 --> Cart Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Form Validation Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Config file loaded: site/config/ion_auth.php
DEBUG - 2011-01-04 21:01:20 --> Email Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Session class already loaded. Second attempt ignored.
DEBUG - 2011-01-04 21:01:20 --> Language file loaded: language/english/ion_auth_lang.php
DEBUG - 2011-01-04 21:01:20 --> Model Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Model Class Initialized
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: cookie_helper
DEBUG - 2011-01-04 21:01:20 --> Helper loaded: date_helper
DEBUG - 2011-01-04 21:01:20 --> Session class already loaded. Second attempt ignored.
ERROR - 2011-01-04 21:01:20 --> Severity: Notice --> Undefined property: Alojamento::$ion_auth E:\Web\www\projectos\Fusephase_v2\sistema\core\Model.php 50
ERROR - 2011-01-04 21:01:20 --> Severity: Notice --> Undefined property: Alojamento::$ion_auth E:\Web\www\projectos\Fusephase_v2\sistema\core\Model.php 50

DEBUG - 2011-01-04 21:01:20 --> Controller Class Initialized
DEBUG - 2011-01-04 21:01:20 --> File loaded: site/views/topo.php
DEBUG - 2011-01-04 21:01:20 --> File loaded: site/views/footer.php
DEBUG - 2011-01-04 21:01:20 --> File loaded: site/views/alojamento/basico.php
DEBUG - 2011-01-04 21:01:20 --> Final output sent to browser
DEBUG - 2011-01-04 21:01:20 --> Total execution time: 0.0913

[eluser]joytopia[/eluser]
Glazz,

https://bitbucket.org/ellislab/codeignit...when-using

Best regards

Bernd

[eluser]Glazz[/eluser]
Thank you that fixed the problem Wink

[eluser]Ben Edmunds[/eluser]
Glazz,

Can you walk me through the exact steps to reproduce these errors?

EllisLab doesn't want to use the CI_Model patch so I need to figure out exactly what is causing this.


Thanks!

[eluser]Glazz[/eluser]
[quote author="Ben Edmunds" date="1294580648"]Glazz,

Can you walk me through the exact steps to reproduce these errors?

EllisLab doesn't want to use the CI_Model patch so I need to figure out exactly what is causing this.


Thanks![/quote]

Hi,

Sincerelly i don't know, because it sometimes show me that error, and other times it doesn't.

But with that fix the error didn't showed up again.

Sorry.

[eluser]joytopia[/eluser]
Ben,

The error comes up with "remember me", after the session has expired.
To reproduce this, set in config/config.php => Session Variables the expriation value to a short time, i.e.

Code:
$config['sess_expiration']        = 10;

Now log in with "remember me", wait some seconds and reload the page several times (up to 6 -10 times). Sometimes the error messages come, sometimes they don't.

Hope, that you can reproduce this error.

Best regards

Bernd

[eluser]Devon Lambert[/eluser]
I haven't been able to reproduce recently, but I recall that it worked similar to what Bernd has pointed out.

Still not convinced that the solution I offered was terribly harmful, but PK thinks so, and I'm sure he knows far better than I do. :-)

- Devon




Theme © iAndrew 2016 - Forum software by © MyBB