• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What authentication system for my... web apps?

#21
[eluser]jbrozz[/eluser]
and

this -> http://www.bramme.net/2008/07/30/additio...-tutorial/

is a tutorial to build auth library? :S

#22
[eluser]Thorpe Obazee[/eluser]
[quote author="jbrozz" date="1220042740"]and

this -> http://www.bramme.net/2008/07/30/additio...-tutorial/

is a tutorial to build auth library? :S[/quote]

I believe 'YES'

#23
[eluser]jbrozz[/eluser]
thanks.... but I'm writing core class library to CI...

Tongue

#24
[eluser]jbrozz[/eluser]
this is a first step

Quote:class CI_Auth {

function auth($username, $password, $table = 'users', $remember = null)
{
$sql = "SELECT id, username, password FROM ".$table."
WHERE username='".trim($username)."'
AND password='".trim($password)."' LIMIT 1";

$res = $this->db->query($sql);

if($res == true) return true;
else return false;
}

}

post in /system/library/

#25
[eluser]Thorpe Obazee[/eluser]
[quote author="jbrozz" date="1220044336"]this is a first step

Quote:class CI_Auth {

function auth($username, $password, $table = 'users', $remember = null)
{
$sql = "SELECT id, username, password FROM ".$table."
WHERE username='".trim($username)."'
AND password='".trim($password)."' LIMIT 1";

$res = $this->db->query($sql);

if($res == true) return true;
else return false;
}

}

post in /system/library/[/quote]

Smile

#26
[eluser]jbrozz[/eluser]
LOL... is a simple method to extract username e password ... Smile

do you want contribute? Big Grin

#27
[eluser]Thorpe Obazee[/eluser]
[quote author="jbrozz" date="1220045266"]LOL... is a simple method to extract username e password ... Smile

do you want contribute? Big Grin[/quote]

hehe. been looking at the different auth libraries around and have been trying to build something myself.

#28
[eluser]jbrozz[/eluser]
ok chamyto Smile

i go to my girl friend

good day (evening for me) Big Grin

#29
[eluser]Bramme[/eluser]
[quote author="jbrozz" date="1220042740"]and

this -> http://www.bramme.net/2008/07/30/additio...-tutorial/

is a tutorial to build auth library? :S[/quote]It's an addition to the tutorial... I'm wondering how bad your English is... No offense.

#30
[eluser]Colin Williams[/eluser]
Tell me that's not an honest start at a core authentication library. Tongue


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.