Commit graph

91 commits

Author SHA1 Message Date
Colin Kuskie
ebf093775e remove debugging code from Auth for user invites 2007-06-10 22:05:49 +00:00
Colin Kuskie
21c4fcb75f This patch adds user invitations, a way for existing users on a site
to send an email to their friends and invite them to create an account
on the site.  The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)

It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace.  Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.

When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in.  This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm.  The latter was so that profile fields can have
their values manually set.  The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.

I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm.  The method is
called getBackToSiteUrl.
2007-06-10 16:38:43 +00:00
Graham Knop
4a15ad3980 Welcome messages shouldn't be added to inbox as pending. 2007-05-08 05:47:30 +00:00
Colin Kuskie
48a67a803e prototype fix for page hopping after login 2007-03-24 22:19:57 +00:00
Frank Dillon
660868a0b3 fixed API method setCallable to work properly. It wasn't setting the class variable properly 2007-02-22 01:47:36 +00:00
Frank Dillon
bed3e8b6c3 bug fix. redirectAfterLogin now works when creating an account. 2007-01-31 22:15:12 +00:00
Martin Kamerbeek
2e608a2a20 Fixed encrypt login behaviour 2006-12-01 10:25:40 +00:00
Colin Kuskie
ee9cae98a8 Documented the heretofore undocumented Deactivate Account Template in the Auth modules.
Broke out code scanning tests into their own tests, and required the CODE_COP environment
variable be set before they were run.
Fixed two bugs in the Workflow test, wrong number of tests and inverse test logic.
More Auth template inheritance work.  Almost time to reflect it over to
the LDAP module.
2006-11-24 21:05:44 +00:00
Colin Kuskie
be4fd74276 WebGUI::Auth provides a set of default template variables inherited
by both AuthWebGUI and AuthLDAP.  I've pulled the defaults out of
AuthWebGUI for one template (anonymous registration) into its own
namspace, Auth.  Default variables will be pulled out for all of the templates
eventually.
2006-11-24 04:01:52 +00:00
Colin Kuskie
61138b4764 forward port of removed code 2006-11-24 02:08:05 +00:00
Drake
526c5d3f70 Minor fix for new template vars in WebGUI::Auth::createAccount. 2006-11-23 22:21:50 +00:00
Drake
ca9d90c577 Implement RFE "Non Required Fields on User Registration". Associated upgrade.
Minor streamlining of profile field listing methods.

WebGUI::Operation::Profile::getRequiredProfileFields is now deprecated,
because it's specific enough to be not significantly more useful than
WebGUI::ProfileField::getRequiredFields, and because with this change
nothing in core uses it anymore.
2006-11-22 23:50:00 +00:00
Colin Kuskie
9bef53dabf fixed bug in Auth.pm where an array was used to send placeholders instead of arrayref 2006-11-10 16:32:19 +00:00
Doug Bell
0fbbbea782 fix: Thread layout flat not sticking Some WebGUI/Auth.pm cleanup. 2006-11-07 21:28:47 +00:00
Doug Bell
e68f609850 WebGUI::Session::Scratch->delete now acts more like Perl's delete()fix: redirectAfterLogin wouldn't work if displayLogin called from WebGUI::Operation::execute 2006-11-07 08:13:23 +00:00
JT Smith
b9010b8c07 merging 7.1.3 changes 2006-10-30 20:20:24 +00:00
JT Smith
5c77aace16 Fixed a bug where logging in/out would cause a blank page display. 2006-10-21 03:05:28 +00:00
Frank Dillon
58f1b9c4aa added runOnLogin and runOnLogout functionality. 2006-07-19 16:23:19 +00:00
JT Smith
a440cb5f41 fix: Security bug in session env 2006-07-11 20:32:46 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
JT Smith
47e6e65dd1 - fix: op=saveSettings broken 2006-06-10 02:39:46 +00:00
Colin Kuskie
ee83a320d0 Fix bad method call in Auth.pm
Fix bad help key in DataForm
2006-06-07 19:54:29 +00:00
JT Smith
771d11f833 - fix: Help is missing style
- fix: Setting expire password on user creation does nothing
 - fix: Collaboration settings in help
 - Lots of template fixes.
2006-06-02 16:22:55 +00:00
Wouter van Oijen
448448e451 Fixed whitespace screwing up POD 2006-05-20 08:43:16 +00:00
Matthew Wilson
afc16fcb78 some session/var/user fixes. 2006-05-02 16:18:05 +00:00
Martin Kamerbeek
29351b77a8 fixed bug [ 1471909 ] createAccountSave not called - no validate email 2006-05-02 11:28:57 +00:00
JT Smith
095d0a7dfd lots of minor changes and bug fixes 2006-04-18 18:33:53 +00:00
JT Smith
d272e7de58 fixed a bug that i created earlier today
added burst protection to page layouts to prevent slashdotting
2006-04-07 08:12:16 +00:00
JT Smith
ae8f3d87f6 setting $session->user now changes the id for the session as it should
continued adding ad management system
added field sets to htmlform and tab form
2006-04-06 22:28:13 +00:00
JT Smith
3e60294bb6 Run on registration and alert on new user have been converted to a single workflow. 2006-03-10 03:48:23 +00:00
kenperl
ebbb129b9a make authenticate() method explain more clear 2006-02-19 11:39:56 +00:00
Colin Kuskie
6fd7575eb9 Removed Utility test for base36, which no longer exists in WebGUI::Utility.pm
new i18n message for duplicate usernames.
2006-02-18 21:58:27 +00:00
Roy Johnson
7dc954ebca Fixed the change password always changes admins password bug.
Also some more work on the EMS.
2006-02-18 18:24:40 +00:00
Matthew Wilson
f64ec77d8a fixing the ->param ->body distinction issue. 2006-01-23 05:18:54 +00:00
Matthew Wilson
fa5439b099 lots o fixes 2006-01-21 19:00:27 +00:00
Matthew Wilson
150087f703 lots of operation and auth fixes. 2006-01-19 03:07:34 +00:00
Matthew Wilson
8839c094c5 some login logout cookie fixes. 2006-01-18 05:58:31 +00:00
Matthew Wilson
e33c7bebc3 an absolute slew of changes. 2006-01-18 01:45:55 +00:00
Matthew Wilson
128f265678 finally, the last of this round of syntax fixes. 2006-01-15 21:02:00 +00:00
Matthew Wilson
f8de599f35 more bugfixes. last of this round of syntaxCheck.t fixes. 2006-01-15 19:39:12 +00:00
JT Smith
b0ffb721b6 more session related bug fixes 2006-01-15 18:34:44 +00:00
Matthew Wilson
65823b1f53 oodles of fixes. 2006-01-15 15:56:17 +00:00
Matthew Wilson
6009ead286 misc. syntax fixes. 2006-01-14 20:01:41 +00:00
JT Smith
a6e5450b64 more bug fixes 2006-01-13 19:32:26 +00:00
Colin Kuskie
ac2ddd2035 session-isms, string concats 2006-01-13 18:21:05 +00:00
JT Smith
a3adaee3a0 removing unnecessary use lines 2006-01-12 22:27:20 +00:00
Colin Kuskie
01d95a265e new i18n api requiring $session 2006-01-12 17:49:20 +00:00
JT Smith
2599a4c853 converting WebGUI::Form API to use new session system 2006-01-10 17:43:38 +00:00
JT Smith
9520b4ce48 migrating datetime api for session 2006-01-10 17:06:41 +00:00
JT Smith
a194408513 changing copyright year 2006-01-09 23:51:04 +00:00