def authorize(username, password)
      email = session[:email] = infer_email_address(username)
      session[:password] = password
      # Try to start a session.
      begin
        CaTissue::Database.current.open(email, password) {}
        logger.debug { "Scat captured the caTissue login name #{email} and password." }
        true
      rescue Exception => e
        logger.debug { "Scat caTissue login #{email.qp} with password #{password.qp} is invalid." }
        session[:status] = "caTissue login was unsuccessful - #{e.message}"
        false 
      end
    end
def authorize(username, password)
      email = session[:email] = infer_email_address(username)
      session[:password] = password
      # Try to start a session.
      begin
        CaTissue::Database.current.open(email, password) {}
        logger.debug { "Scat captured the caTissue login name #{email} and password." }
        true
      rescue Exception => e
        logger.debug { "Scat caTissue login #{email.qp} with password #{password.qp} is invalid." }
        session[:status] = "caTissue login was unsuccessful - #{e.message}"
        false 
      end
    end
Obtains the HTML Basic authorization username and password.
 Formats the caTissue login name as _username_+@+_domain_,
 where _domain_ is the domain portion of the system +hostname+.

 @param [String] the caTissue login name, with or without the +@+_domain_ suffix
 @param [String] the caTissue password
 @return [Boolean] the authorization result