1

I've pretty much straight lifted my code from http://li3.me/docs/manual/auth/simple-authentication.md

in

if($user = Auth::check('customer', $this->request)) {
 //whatever
}

I'm trying to get a simple Auth::check in Lithium to fail when no user has logged in. Instead it seems to always perform a User::first() and return the first record in my Mysql users table where i would expect boolean FALSE.

pastium

help appreciated,

Paul

botero
  • 598
  • 2
  • 11
  • 23
Roon
  • 98
  • 7

1 Answers1

2

Use Auth::check($name, $request) when you actually have something in the $request otherwise just use Auth::check($name).

I've written another adapter instead of Form called SaltedForm because I'm not using a simple password hashing (see pastium)

greut
  • 4,305
  • 1
  • 30
  • 49
  • I figured the same call would always check for session data then query the db regardless. Great. thanks man! – Roon Feb 28 '11 at 12:17