Method: JunglePath::API::Helpers::AuthLocalUser#authenticate_user

Defined in:
lib/jungle_path/api/helpers/auth_local_user.rb

#authenticate_user(user_name, password, no_cache = false) ⇒ Object



86
87
88
89
90
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 86

def authenticate_user user_name, password, no_cache=false
	user = get_user(user_name, password, no_cache)
	set_current_user(user)
	valid = (user and user.is_valid)
end