Method: JunglePath::API::Helpers::AuthLocalUser#authenticate_identity
- Defined in:
- lib/jungle_path/api/helpers/auth_local_user.rb
#authenticate_identity(identity, no_cache = false) ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 70 def authenticate_identity identity, no_cache=false id = identity.dup id.user = get_user(identity.user_name, identity.remote_password, no_cache) id.key = id.user id.valid = (id.user and id.user.is_valid) id end |