svip/ToyGallery — Issue #17: Set flags to give new users upon confirmation
Author: svip
Created: 2011-12-20 08:49:52+00:00
State: open

At present, only CONFIRMED is set when a user is confirmed via e-mail. However, it should be possible for a site to modify exactly which flags should be given to new users, automatically.

$FlagsUponConfirmation = array(USERFLAG_CONFIRMED);

Is the default value. New flags can be attached as such;

$FlagsUponConfirmation[] = USERFLAG_CANCOMMENT;

Userflags also includes: USERFLAG_ARTIST, USERFLAG_UPLOADER, USERFLAG_ADMIN.

While any of these can be set to be automatically given, it is highly discouraged to give them USERFLAG_ADMIN, as this would create a severe security risk.

They can all be found in includes/GlobalVariables.php