CodeIgniter Forums
flexi auth - A user authentication library for CodeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: flexi auth - A user authentication library for CodeIgniter (/thread-54581.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-19-2012

[eluser]skunkbad[/eluser]
[quote author="davidinchi" date="1350667732"]Is there a relation between Flexi-auth and a bug with the C.I. Cookies?

I'm working with CodeIgniter 2.1.3 and Flexi-auth but when a I login with Chrome or IE 9 if a user refresh or change the page I'm logout.

The problem seems with the ci_cookie. In Chrome or IE 9 that cookie is created but expire immediatly.

I try to fix this bug installing the upgrade that has been offered to @xosen in this forum, but without results.


Best.[/quote]

Wouldn't this be an Ion Auth issue?


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-19-2012

[eluser]haseydesign[/eluser]
@davidinchi

Yes you were right, there was a bug with the library and IE setting login cookies on the 'Login via Ajax' example.
Although I could only regenerate the bug in IE and not Chrome as you suggested.
However, I'm pretty sure the fix should address any browsers that were having the same issue.

You can get the fix from the usual Github repo.
The only file that needs to be updated is 'flexi_auth_lite_model.php'.

@skunkbad

As said above, this particular issue would have been specific to the flexi-auth library rather than inherited from ion-auth.
Although the flexi-auth library was originally built on many of the foundations of ion-auth, by the time I released the library, the code base had virtually been completely rewritten.
So any bugs affecting ion-auth are unlikely to also affect flexi-auth.




flexi auth - A user authentication library for CodeIgniter - El Forum - 10-19-2012

[eluser]code_has_been_ignited[/eluser]
I was wondering is it possible for your auth library to use SMTP to send emails?



flexi auth - A user authentication library for CodeIgniter - El Forum - 10-20-2012

[eluser]davidinchi[/eluser]
@skunkbad @haseydesign thanks for your responses.

@haseydesign the problem is still there with your suggested update. Check it for yourself: http://flyinglow.hl31.dinaserver.com/development/


Best.


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-20-2012

[eluser]code_has_been_ignited[/eluser]
In regards to reply: http://ellislab.com/forums/viewthread/224351/P60/#1035977

I implemented the changes and works very very nicely. Thank you so much this also resolved a few issues in my thought process.

Great library!


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-20-2012

[eluser]Ben Edmunds[/eluser]
Hey dude,

Just saw this so I wanted to say good job. Code looks great. It definitely has a different philosophy than Ion Auth and that's great for the community to have choice.

Take care dude!


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-22-2012

[eluser]haseydesign[/eluser]
@davidinchi

Hey man, thanks for the direct link.
As you said in your previous message, I am also getting logged out once I've refreshed another page.
Although I'm getting this in IE, FF and Chrome, which suggests to me this isn't browser specific.

If you go to the flexi-auth demo @ http://haseydesign.com/flexi-auth/auth - I would presume it works for you like it does for me?

If you can login, then this would suggest that there is something wrong with the implementation of your code rather than the library.

Can you try and install the flexi-auth demo on the same sever as your example and see if you can login to the demo?

Let us know how you get on.



flexi auth - A user authentication library for CodeIgniter - El Forum - 10-22-2012

[eluser]haseydesign[/eluser]
@code_has_been_ignited
No problem man, come on by again if you need any further help.

@Ben Edmunds
Hey man its really cool you checked the library out.
You're kind of like the libraries Godfather I guess, it wouldn't have happened if you hadn't of got me started with Ion Auth.

I was still pretty new to using CI when I started tweaking Ion Auth and I kind of just got carried away with trying to make a library that could cover all of a clients potential requirements. Before I knew it, it was a library all of its own - I then didn't learn when to stop and ended up building flexi-cart too.

Cheers for dropping by!


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-22-2012

[eluser]davidinchi[/eluser]
@haseydesign

FF fails??!!

I've test it and FF is getting logged in in my case.

http://haseydesign.com/flexi-auth/auth is working for me with Chrome, no problem.


I will install the flexi-auth demo on the same sever as you suggest. Thanks !!


[quote author="haseydesign" date="1350906797"]@davidinchi

Hey man, thanks for the direct link.
As you said in your previous message, I am also getting logged out once I've refreshed another page.
Although I'm getting this in IE, FF and Chrome, which suggests to me this isn't browser specific.

If you go to the flexi-auth demo @ http://haseydesign.com/flexi-auth/auth - I would presume it works for you like it does for me?

If you can login, then this would suggest that there is something wrong with the implementation of your code rather than the library.

Can you try and install the flexi-auth demo on the same sever as your example and see if you can login to the demo?

Let us know how you get on.
[/quote]


flexi auth - A user authentication library for CodeIgniter - El Forum - 10-22-2012

[eluser]haseydesign[/eluser]
@davidinchi

When I tried it earlier on FF whilst on my work computer, it did seem to be logging me out.
However, trying it now on my home computer and FF does seem to be working.

There definitely seems to be something a little strange about it.
Good luck with installing the demo on your server, let us know how you get on.