CrushMFT Documentation

This page in: CrushFTP 11, CrushFTP 10

Self registration#

With self registration, people ask for an account themselves: they fill in a form on the web interface, and the server makes the account. An administrator then lets it in.

Self registration is built from three things that exist anyway: a custom form, a user that shows this form, and optionally an event.

1. The form#

Make a form in Custom forms. The names of its entries decide what the server does with the answers:

Name of the entry Becomes
registration_username the user name of the new account. It must be there.
registration_password its password
registration_email, registration_first_name, registration_last_name, … the value of the account with that name: whatever follows registration_ is the name of the user's setting
a name that starts with pendingSelfRegistration a list to choose from, whose choices are groups: see Putting people into a group
any other name is kept with the registration and handed to the event

Only entries of the form are taken. A request with more fields than the form has cannot set anything else on the account.

2. The user that shows it#

Choose the form as WebInterface Message Form on a user: see Forms and share options. Whoever logs in as this user is shown the form.

The usual user is anonymous, the account that needs no password, so that the form is open to everybody. A user without a message form cannot register anybody: "Access Denied."

3. What the server does#

When the form is sent, the server

  1. checks the password against the password rules of the user that showed the form, and refuses a weak one;
  2. refuses a name that exists, a name with a / in it, and a name that is the mail address of an existing user;
  3. makes the account, disabled;
  4. puts it into the group pendingSelfRegistration;
  5. runs the events of the user that showed the form which have the trigger Accepts disclaimer.

The new account can do nothing until an administrator opens it in the User Manager, gives it what it needs, and enables it. The group pendingSelfRegistration in the groups list is the list of who is waiting.

Putting people into a group#

An entry whose name starts with pendingSelfRegistration, with a list of choices, lets the person say what they are: "Customer", "Supplier". Each choice must be the name of an existing group. The new account is then put into that group and inherits from the user of the same name, so it has the folders and limits of that template from the start. It is still made disabled.

A choice that is not one of the form's own, or not a group, is refused: nobody can register into a group you did not offer.

Telling somebody#

Give the user that shows the form an event with the trigger Accepts disclaimer and the action Send Email, to the people who approve accounts. The fields of the form are in the mail as {meta_registration_username}, {meta_registration_email} and so on. A job instead of a mail can do more, such as opening a ticket.

Good practice#

  • Ask for a mail address and keep the approval by a person. An open form will be found by robots; turn on Recaptcha required for WebInterface logins where you can.
  • Give anonymous nothing but the form: no folders.
  • Set the password rules on the user that shows the form: they are the ones that count for the new password.
  • Look through pendingSelfRegistration regularly and delete what nobody claimed.

Behind a DMZ server the form works the same: the DMZ passes the registration on to the internal server, which makes the account.