Part of the EllisLab Network
   
8 of 47
8
FreakAuth light 1.1 released
Posted: 01 September 2007 03:07 AM   [ Ignore ]   [ # 71 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

Well guys, me and Chris are back from holydays.
Give us a few days and we will back on FAL!

Sorry for not answering to the forum but we have been off.

Anyway, let’s re-start!

ceej - 08 August 2007 12:02 PM

Hey there,

+1 for freakauth.

One quick question though…..is it possible to change the user name into being their email address instead of them creating a user name?

Many thanks

Yep, this feature is planned for next release.

Kemik - 07 August 2007 07:53 PM

Hi,

If auto login is a feature of FreakAuth, how does it store the user’s details in cookies? If this isn’t a feature do you have any plans to add this “Remember me” button?

Thanks.

The remember me button is planned for next release as well.

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 September 2007 03:58 AM   [ Ignore ]   [ # 72 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006
coder_cotton - 26 August 2007 06:45 PM

Is is possible to have multiple roles per user, without having the group hierarchy? IE, I have several user types, some have different permissions, but not necessarily hierarchal permissions.

TIA,
cotton

Hey coder_cotton, check out this post: multiple roles per users

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 September 2007 08:01 AM   [ Ignore ]   [ # 73 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
dtempelmeyer - 24 August 2007 08:14 AM

Any plans to support MS SQL Server?

Sorry, no.
If you have a MS SQL script for FAL, we’ll be pleased to include it in the next release.
And then FAL will support MS SQL !!!

Profile
 
 
Posted: 04 September 2007 03:44 AM   [ Ignore ]   [ # 74 ]  
Summer Student
Total Posts:  20
Joined  08-08-2007

hi im looking for nice admin system for CI and i found FAL, its great - i will implement it to web page that i build but i got few questions.


FIRST
in controller i got

$this->output->enable_profiler(TRUE);
$this->freakauth_light->check('admin');

so when u login

SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188885660
UPDATE ci_sessions SET last_activity
= 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:9:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:new:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'
UPDATE ci_sessions SET last_activity = 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:10:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:new:flashMessage\";s:32:\"You have successfully logged in.\";s:22:\"flash:old:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'
UPDATE ci_sessions SET last_activity = 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:9:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:old:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'

why there is so many update querrys?

SECOND i install FAL in clean CI project(to test it) and it works great.
(my controller with

$this->freakauth_light->check('admin');
  if not logedin it redirects to your login panel and then back, if u refresh few times u see only one querry
SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188887032

)


So i dit the same with my web project the (same database)
I put into my admin controller

$this->freakauth_light->check('admin');

and after f.e 3 refresh of page it logout me all the time (i see there is some insert querry which shouldnt be there)

INSERT INTO ci_sessions (session_id, ip_address, user_agent, last_activity) VALUES ('0a8e9878896a3a2ec7ac9a81ad30b7db', '127.0.0.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', 1188894627)
SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188887427

i know its because

$autoload['libraries'] = array('session');

and im useing

$this->session->set_userdata(...

I want to use FAL so how i can intergrate it?

Profile
 
 
Posted: 04 September 2007 04:47 AM   [ Ignore ]   [ # 75 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006
wojtekk - 04 September 2007 03:44 AM

I want to use FAL so how i can intergrate it?

Hey wojtekk,

well, in order to use FAL you should use the DBsession library (included in the download) in your code, and not session.
I.e.

$this->dbsession->.....

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 September 2007 10:28 AM   [ Ignore ]   [ # 76 ]  
Summer Student
Total Posts:  9
Joined  04-28-2007

Hi there,

i’ve got freakAuth up and what looks like running fine and i get all the example stuff etc. and no errors. theres just one little issue i want to sort out.

when i’m logged in as superadmin into the admin section of your example app, i click the link to logout and i get the logout confirmed flash message, but i can then hit the back button and get access to the previous admin pages.

I theoretically shouldn’t be able to do that.. cos the session user_name/role/id variables should have been destroyed and should be checked on every access to the restricted page.

can you replicate this or is it just a problem in my installation somewhere

cheers

Tim

Profile
 
 
Posted: 06 September 2007 07:28 AM   [ Ignore ]   [ # 77 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
hoojamaflip - 05 September 2007 10:28 AM

I can then hit the back button and get access to the previous admin pages. Can you replicate this or is it just a problem in my installation somewhere?

Yes I can, I think that there is something to code in the html header for your pages to expire, so that they can’t be saved in the browser’s cache.
I hope that someone will have more infos than me !!!

EDIT: now the FreakTeam is trying to answer the old posts, please be patient…

Profile
 
 
Posted: 06 September 2007 08:13 AM   [ Ignore ]   [ # 78 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

Answering this post about a lang switch.
Good idea, I planned to include some kind of hooks in FAL for this kind of personal feature. Now that Dan has worked on an easy way to extend the lib, it could be achieved with this new feature.
Try to add to the _set_logindata() a piece of code like:

<?php
$lang
= '';
switch(
$userdata[country_id] )
{
  
case 73: $lang = 'french';
  case
225: $lang = 'english';
  case
226: $lang = 'english';
}
if ( $lang != '' ) $this->CI->config->set_item('language', $lang);
Profile
 
 
Posted: 06 September 2007 08:36 AM   [ Ignore ]   [ # 79 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

Answering this post and this post about custom fields and registration.
Nothing is done for integration of custom profiles in the registration. I’m very interested in such a process and tried to start a RFC here, please fell free to add your thoughts. Then we’ll start to work on this.

Answering this post and the 2 following posts screaming for help, about custom fields and registration.
Do you have time to write some notes about your experience, it could be a base for a tuto. Thanks.

Profile
 
 
Posted: 06 September 2007 09:09 AM   [ Ignore ]   [ # 80 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
gon - 12 August 2007 06:52 AM
Exey - 11 August 2007 05:27 AM

Is it correct to use the auth controller for auth actions and perform a redirect to the referer URL?
For example, for showing error messages on the same view that the loggin appeared.

I miss an example on the docs that explains this, but am sure that lots of people are doing something like this..

It took me a while to understand. You mean if you have a login form in a menu, display the messages near this form and not in the main login page.
This could be nice, and I don’t see any problem with this process, did you end with something ?

Profile
 
 
   
8 of 47
8
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77560 Total Logged-in Users: 39
Total Topics: 101554 Total Anonymous Users: 4
Total Replies: 544388 Total Guests: 258
Total Posts: 645942    
Members ( View Memberlist )