Quantcast
Channel: Pragmatic Forums | Posts in topic 'Recipe 5 - Authenticate Rest Client'
Viewing all articles
Browse latest Browse all 15

Recipe 5 - Authenticate Rest Client posted by Ng Tze Yang @ Fri, 22 Aug 2008 01:48:07 +0000

$
0
0

Hi Phattymatty,

Yup, u need to have ur User.authenticate. Here’s a very simple one:

def self.authenticate( name, password ) User.find_by_name_and_password( name, password )
end


Viewing all articles
Browse latest Browse all 15

Trending Articles