summaryrefslogtreecommitdiff
path: root/LedgerSMB/RESTXML/Document/Session.pm
blob: ed99b06b54dc56eba9fbde8c21371d12de842e35 (plain)
  1. =head1 NAME
  2. LedgerSMB::RESTXML::Document::Session
  3. =head1 SYNOPSIS
  4. This sets up an authentication session for iterativly accessing documents in LedgerSMB. A user should
  5. post a login document to /Session/userid, and upon success, they will recieve a cookie which they can use to further
  6. access other resources.
  7. =cut
  8. package LedgerSMB::RESTXML::Document::Session;
  9. use strict;
  10. use warnings;
  11. use base qw(LedgerSMB::RESTXML::Document::Base);
  12. sub handle_get {
  13. my ( $self, $args ) = @_;
  14. }
  15. sub handle_post {
  16. my ( $self, $args ) = @_;
  17. print "Content-type: text/html\n\nhi";
  18. }
  19. 1;