Commit graph

184 commits

Author SHA1 Message Date
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
Doug Bell
07a40788bb add: User profile data table is now a flat table. 2007-05-28 21:35:34 +00:00
Colin Kuskie
0587d28026 fix defined variable problems interfering with session scratch variables in the user search/list operation 2007-04-06 21:48:25 +00:00
Roy Johnson
d4689365c3 don't need this line anymore 2007-01-16 16:08:17 +00:00
Roy Johnson
61adb7d962 fix - xss vulnerability in webgui usernames 2007-01-16 16:06:08 +00:00
Drake
e795f06fd8 Rollback r3340 since it broke specialState:init. 2006-12-06 17:49:22 +00:00
Drake
aa3b8b6d24 Profile field defaulting fixes. 2006-12-06 16:45:52 +00:00
Roy Johnson
dbab2a1a4d fix - Admin Users submenu doesn't fill in uid
Note: this fix was implemented by refactoring the _submenu method to use a properties hash for params and eliminate use of stow.  If any problems crop up with managing users, I would start looking here.  All of my testing indicates everything is working though.
2006-11-07 18:09:47 +00:00
Drake
565119fa1a Multiple changes:
- Shift ProfileField API so that new returns undef on invalid fields.
    This makes it possible for Shortcut::www_saveUserPrefs to execute.
    The class methods in ProfileField are now also actually class methods.

    + Also fix up other modules that created dummy ProfileFields so that
      they don't need to do that anymore, because it's now invalid.

  - Merge contradictory-looking code from Shortcut's view and www_view
    into a reasonable compromise in view, and then have www_view call
    $self->view in a manner similar to that of the default Asset::view.

    + The profile field overrides still don't work, because there's no
      obvious mechanism for "transclude asset in context".  This may
      require some fiddling to get right...
2006-08-31 00:14:56 +00:00
Drake
aac32d24bd Multiple enhancements:
- Perform RFE "js-confirmation-operation/user.pm".
  - Perform RFE "js-confirmation-operation/group.pm".
  - Perform RFE "locked-by-who".
    (Displays in title and alt of img, but not in body text.)
2006-08-29 16:49:25 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
Roy Johnson
4cb7c98a16 fix - Pagination not working in User Management System 2006-06-28 22:22:00 +00:00
JT Smith
b7957742bc - fix: Username blank when editing user Visitor
- fix: Thread Count is off in the Collaboration system
 - Fixed an indexing problem with Product assets.
 - fix: Reply count off when restoring from trash
 - fix: Karma not spent properly
 - fix: Avatar Message Board Template Not Working
2006-06-01 17:40:15 +00:00
Matthew Wilson
b90f3eee5c fix to formUsers helper 2006-05-08 03:46:30 +00:00
Matthew Wilson
e6b0ec16c5 adding an alphabetical key to op=listUsers 2006-05-08 02:02:40 +00:00
JT Smith
10e8ee5957 fixed the autocomplete problem 2006-05-04 13:10:54 +00:00
Matthew Wilson
f29afa58f7 some session/var/user fixes. 2006-05-02 16:18:45 +00:00
JT Smith
1b7488e4b1 [ 1475220 ] some 6.99 templates have double slashes 2006-04-28 17:12:58 +00:00
JT Smith
dc1a0c7703 added a user form field type 2006-04-23 23:50:40 +00:00
JT Smith
a7df0f7a55 fixing some bugs relaed to cs mail replies
fixed a bug in the user manager where the user would take on the username/alias of the visitor
fixed a bug in error handling where debug was being spewed for errors in approriately
2006-04-11 22:50:11 +00:00
JT Smith
1b2c824a9c added save buttons at the top of HTML forms 2006-04-07 04:37:20 +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
Wouter van Oijen
27385d24c6 Fixing bug. 2006-03-24 10:43:17 +00:00
Colin Kuskie
5ec8690e53 More user testing, for addToGroup. Also, make sure that the test for ipFilter
always cleans up after itself.

Fix a bug where Operation::User::_submenu was still using form->process.  Switched
to using stow instead.

If the uid is "new", links for delete and become user are not shown anymore.
2006-03-18 00:18:31 +00:00
kenperl
380a498127 rolling back my r989 2006-02-21 02:04:52 +00:00
kenperl
9c63291d96 don't need to loop all authMethods when adding a new user or editing an existing user, this will save db spaces and run less perl statements. 2006-02-21 01:03:35 +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
e76ea86b52 Fixed bug allowing admin to create a new user using a username that already exists 2006-02-18 21:15:08 +00:00
Roy Johnson
bc41c87d62 Fixing my screwup. Admins can change usernames now. 2006-02-18 20:32:23 +00:00
Roy Johnson
c5579c81ca Cleaned up editUserSave method. Still working on the password bug. 2006-02-18 17:52:16 +00:00
Roy Johnson
a50a190642 Working on making this work again 2006-02-17 22:53:54 +00:00
Colin Kuskie
0c69c93f41 forward port of becoming illegal userId bugfix 2006-02-14 06:50:14 +00:00
kenperl
ce3b1f484a fix the issue, Couldn't execute operation : WebGUI::Operation::User::www_editUserSave. Root cause: Can't locate object method "user" via package "LDAP" (perhaps you forgot to load "LDAP"?) at WebGUI/Operation/Auth.pm line 35 2006-02-13 14:48:01 +00:00
kenperl
6c39292246 fix bug [ 1429335 ] 6.9: Error in User.pm prevents creating new users
Root cause: Can't modify non-lvalue subroutine call at lib/WebGUI/Operation/User.pm line 404
2006-02-12 15:12:58 +00:00
Wouter van Oijen
2b1c85370c XHTML Bugfixes 2006-02-10 21:21:03 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
fa5439b099 lots o fixes 2006-01-21 19:00:27 +00:00
Matthew Wilson
3d740cdfac oodles of fixes. 2006-01-21 02:01:15 +00:00
Matthew Wilson
150087f703 lots of operation and auth fixes. 2006-01-19 03:07:34 +00:00
Matthew Wilson
e33c7bebc3 an absolute slew of changes. 2006-01-18 01:45:55 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
JT Smith
b0ffb721b6 more session related bug fixes 2006-01-15 18:34:44 +00:00
Matthew Wilson
f2cccdff9f more oodles of changes. 2006-01-15 18:19:44 +00:00
JT Smith
89a6e4efdb more session related bug fixes 2006-01-15 17:49:03 +00:00
Matthew Wilson
19bce8eaf6 bunches o syntax fixes. 2006-01-14 21:06:52 +00:00
JT Smith
5a8845c407 remove grouping use line 2006-01-12 22:52:22 +00:00
JT Smith
a3adaee3a0 removing unnecessary use lines 2006-01-12 22:27:20 +00:00
JT Smith
64048c0846 migrated tabform to new session system 2006-01-12 19:51:54 +00:00
Colin Kuskie
01d95a265e new i18n api requiring $session 2006-01-12 17:49:20 +00:00
JT Smith
877bf082a0 migrating paginator api to new session system
fixed a few old style session vars
2006-01-12 17:24:06 +00:00