DooPHP IRC channel


How to use DooAuth?

Discussion about installation and environment issues.

How to use DooAuth?

Postby tripbr » Wed Jul 21, 2010 12:32 pm

Hello guyz!

I couldn't find nothing about what DooAuth can do, and some how-tos...

Could you help me?
Let's Doo::it
tripbr
 
Posts: 59
Joined: Thu Jun 24, 2010 2:21 pm

Re: How to use DooAuth?

Postby RichardM » Wed Jul 21, 2010 3:00 pm

SOmeone else asked the same thing a short while ago...check the forums.
Note: code samples my not be 100% accurate.
RichardM
 
Posts: 1329
Joined: Sun Aug 30, 2009 6:03 pm
Location: Cumbria, UK

Re: How to use DooAuth?

Postby tripbr » Thu Jul 22, 2010 10:18 am

Tanks RichardM, but I couldn't find nothing in the API reference and in the forum...
Let's Doo::it
tripbr
 
Posts: 59
Joined: Thu Jun 24, 2010 2:21 pm

Re: How to use DooAuth?

Postby leng » Wed Jul 28, 2010 6:05 pm

Oh...

Code: Select all
//bla bla... after query the DB and the user + password match.
$this->auth->setSecurityLevel(DooAuth::LEVEL_HIGH); //Needed high security level
$this->auth->setData($_POST['username'], 'member');   //set username and role.

//to check if a user is login
if($this->auth->isValid()){
     echo 'You are login!';
}
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: How to use DooAuth?

Postby tripbr » Thu Jul 29, 2010 6:11 pm

Tanks leng!
Let's Doo::it
tripbr
 
Posts: 59
Joined: Thu Jun 24, 2010 2:21 pm


Return to Installation & Setup

Who is online

Users browsing this forum: No registered users and 1 guest