Ready for 7.10.29 development.
This commit is contained in:
commit
c806f99b7b
4236 changed files with 1217679 additions and 0 deletions
61
lib/WebGUI/Operation/Invite.pm
Normal file
61
lib/WebGUI/Operation/Invite.pm
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
package WebGUI::Operation::Invite;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2009 Plain Black Corporation.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::User;
|
||||
use WebGUI::Form;
|
||||
use WebGUI::Mail::Send;
|
||||
use WebGUI::Operation::Auth;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Package WebGUI::Operation::Invite
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
DEPRECATED - This module is deprecated and should not be used in any new code.
|
||||
Use WebGUI::Account::Inbox instead.
|
||||
|
||||
=cut
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_inviteUser ( )
|
||||
|
||||
DEPRECATED - This method is deprecated and should not be used in any new code.
|
||||
Use WebGUI::Account::Inbox::inviteUser instead.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_inviteUser {
|
||||
my $session = shift;
|
||||
my $instance = WebGUI::Content::Account->createInstance($session,"inbox");
|
||||
return $instance->displayContent($instance->callMethod("inviteUser"));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_acceptInvite ( )
|
||||
|
||||
DEPRECATED - This method is deprecated and should not be used by any new code.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_acceptInvite {
|
||||
my $session = shift;
|
||||
##Send them right to auth.
|
||||
my $auth = WebGUI::Operation::Auth::getInstance($session);
|
||||
return $session->style->userStyle($auth->createAccount());
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue