lib/ury_rapid/baps/requests/requester.rb
def login_authenticate(username, password, seed)
          password_hash = Digest::MD5.hexdigest(password.to_s)
          full_hash = Digest::MD5.hexdigest(seed + password_hash)

          request(Codes::System::LOGIN) { string username.to_s, full_hash }
        end
# Sends credentials to the BAPS server to further log-in
#
# login_initiate MUST have been called previously.
#
# @api semipublic
#
# @example Log into BAPS.
#   requester.login_authenticate('Elvis', 'hunter2', 'abc123')
#
# @param username [String] The password to use to authenticate to the
#   BAPS server.
# @param password [String] The (plaintext) password to use to
#   authenticate to the BAPS server.
# @param seed     [String]- The session seed yielded by initiation.
#
# @return [void]
Sends credentials to the BAPS server to further log-in
login_initiate MUST have been called previously.
Sends credentials to the BAPS server to further log - in login_initiate MUST have been called previously .
def login_authenticate(username, password, seed)
          password_hash = Digest::MD5.hexdigest(password.to_s)
          full_hash = Digest::MD5.hexdigest(seed + password_hash)
          request(Codes::System::LOGIN) { string username.to_s, full_hash }
        end
def login_authenticate ( username , password , seed ) password_hash = Digest :: MD5 . hexdigest ( password . to_s ) full_hash = Digest :: MD5 . hexdigest ( seed + password_hash ) request ( Codes :: System :: LOGIN ) { string username . to_s , full_hash } end
Sends credentials to the BAPS server to further log-in
login_initiate MUST have been called previously.
Sends credentials to the BAPS server to further log - in login_initiate MUST have been called previously .
None
void
username
The password to use to authenticate to the BAPS server.
The password to use to authenticate to the BAPS server .
password
The (plaintext) password to use to authenticate to the BAPS server.
The ( plaintext ) password to use to authenticate to the BAPS server .
seed
The session seed yielded by initiation.
The session seed yielded by initiation .
api
None
example
Log into BAPS. requester.login_authenticate('Elvis', 'hunter2', 'abc123')
Log into BAPS . requester . login_authenticate ( ' Elvis ' ' hunter2 ' ' abc123 ' )