User sign-up
Sign-up lets people create a FileRun account themselves, from the sign-in page, without an administrator creating it for them. It is off in a new installation.
The settings are in the control panel under Users → Settings → Sign up, which only the
superuser can open. The page has two tabs, Settings and Welcome e-mail.
Turning it on
- Open Users → Settings → Sign up and tick
Enable sign up. - Choose a
Role. The role decides what the new accounts can do and where their files are kept. The list starts with- Please select -, and does not offer the Guest role. FileRun refuses to save the page without a role, with "You need to select a role for the new users!". - Save.
The sign-in page then shows a Create account button.
The button stays hidden, even with the option on, in these cases:
- An authentication source is enabled and
Allow local user accounts to log inis off, under Security → Authentication. The accounts then come from the external system. - The role chosen under
Roledoes not exist. This can happen after an import of the settings, which does not carry the role. Save the sign-up settings with a role to offer the sign-up again.
The role chosen under Role cannot be deleted, also while the sign-up is off. FileRun refuses the
deletion with "This role is assigned to the user accounts that are created through the sign-up form
and cannot be deleted!". See Deleting a role.
When the installation already has as many user accounts as its licence allows, the button is still shown, but the sign-up is refused at its last step, with the message "Your account cannot be created at the moment! For more information, please contact the server administrator."
The steps of the sign-up
The visitor clicks Create account on the sign-in page. The sign-up has three steps, and FileRun
creates the account only at the end of the last one:
- The e-mail address. The visitor types the address and clicks
Continue. FileRun sends a verification code of six digits to the address, in a message with the subject "Sign-up verification code". - The code. The page shows "We sent a 6-digit code to", followed by the address and a
Changelink, which returns to the first step. The visitor types the code from the message. The page continues by itself at the sixth digit. - The details and the password. The page shows "Your e-mail address is verified.". The visitor
fills in the name and the fields that the settings ask for, and clicks
Continue. The next page shows "You will sign in with this e-mail address:", with the address. The visitor chooses a password and clicksCreate account.
What else applies:
- The code expires after 10 minutes. An address receives one message every 10 minutes: a new request for the same address during that time sends nothing. The page says "You can ask for a new code after 10 minutes."
- A wrong code gets "The validation failed!". After five wrong codes, the code stops working. The address can receive a new code when its 10 minutes have passed.
- The code works only in the browser in which the visitor asked for it.
- After the code, the visitor has 30 minutes to complete the last step. After that, FileRun shows
"The verification of your e-mail address has expired. Please start the sign-up again.", and
Start againreturns to the first step. - One browser can have codes waiting for at most five addresses at a time. After that, the message is "Verification codes have been sent to too many e-mail addresses. Please wait %1 minute(s) before trying again.", with the number of minutes.
The sign-up page does not show whether an e-mail address has an account. An address that already belongs to an account receives no code. It receives a message with the subject "You already have an account", which says that no new account was created and links to the sign-in page. When the password reset is available, the message also says that the password can be reset from the sign-in page. The page goes on to the code step, as it does for any address.
What the visitor fills in
The form always asks for the first and the last name. The first name is required. The fieldset
Required fields selects the other fields:
Last name: makes the last name required.Phone,Company,Website addressandComment: the form shows the field only when it is selected here, and the field is then required.
A field that the form does not show stays empty in the new account.
The first name and the last name cannot contain the characters < and >. FileRun refuses such a
name with "A name cannot contain the characters "<" and ">".".
The visitor chooses the password on the last page. The password must follow the password rules of the installation. See Passwords.
The username of the new account is the e-mail address, in lower case.
What the new account gets
- The role chosen under
Role, with its permissions. - A home folder, built from the home folder path of that role. FileRun creates the folder if it does not exist.
- The groups listed under
Default groups. - The password that the visitor chose. FileRun does not ask for a new password at the first sign-in.
The account's Send me e-mail notifications option is off. Users can turn it on themselves, under
Account settings.
Give each account its own home folder
Put a placeholder in the home folder path of the role, so that each account gets a folder of its own. For example:
1/user-files/{USERNAME}
The placeholders are {USERNAME}, {EMAIL}, {NAME} (the first and the last name), {COMPANY}
and {DESCRIPTION} (the comment).
Warning
Without a placeholder, every account created through sign-up gets the same home folder, and their users see each other's files.
FileRun checks the path of the new home folder with the rules for the path. When the path breaks a rule, for example when the path template of the role leads into the installation folder of FileRun, the sign-up fails with "Failed to create home folder!", and no account is created.
Default groups
The new accounts are added to the groups listed under Default groups.
The same list also applies to accounts that an authentication source creates the first time somebody signs in through it, not only to accounts created through this form.
When a group is deleted, FileRun removes it from the list. The export of the settings does not include the list, and the import does not change it, because the groups of another installation are not the same groups. See Exporting and importing settings.
Activating the new accounts
What happens when the visitor clicks Create account depends on
New accounts require admin activation., which is on by default. In both cases, the visitor has
proved the e-mail address with the code.
With administrator activation (the default)
The account is created inactive. The page shows "Your account has been created. An administrator has to activate it before you can sign in." Until then, the sign-in of the account shows "Your account has not been activated yet."
To activate an account, open Users in the control panel, edit the account and tick
This user account is active in the Login panel. See
Reactivating an account.
When an administrator activates an account that has never signed in, FileRun sends the person an e-mail message with the subject "Your account has been activated", with the address of the sign-in page.
Without administrator activation
The account is active as soon as the sign-up is completed, and FileRun signs the visitor in at once. The page shows "Your account has been created. You are now signed in.", and opens FileRun when the visitor closes the message. Anybody who can receive e-mail at the address they typed gets a working account, without anybody checking it.
Knowing that somebody signed up
The user activity log in the control panel records each sign-up. A notification rule can send you a message about it.
The accounts that wait for the activation
With New accounts require admin activation. on, open E-mail → Notification rules and add
a rule: choose the System account under User or group, tick the action
Sign-up requires activation and put your address under Notify e-mail address.
The message says that the person signed up and that the account waits for the activation. It holds the name and the e-mail address of the person, and a link that opens the edit form of the account in the control panel.
Every new account
- Add a group to
Default groupsunder Users → Settings → Sign up, so that every new account joins it. A group made only for this purpose works. - Open E-mail → Notification rules and add a rule: choose that group under
User or group, tick the actionNew user registrationand put your address underNotify e-mail address.
The rule has to name a group. A rule on a user account applies only to that account, and the account that signs up does not exist yet when the rule is made.
The messages of both rules go out with the next run of the notification job, not at the moment of the sign-up. See Notification settings.
The welcome e-mail
The tab Welcome e-mail holds the Message that FileRun sends by e-mail to every person who
completes the sign-up. While the field is empty, no welcome e-mail is sent.
- The subject is "Welcome!". The message starts with a greeting with the name of the person.
- The text is sent as plain text, and its line breaks are kept.
- The person receives it also when the account waits for the activation.
- The scheduled task
everyMinute.phpsends it. See Scheduled tasks. - FileRun sends the text that the field holds at the moment of the sign-up.
The accounts that an administrator or an authentication source creates do not receive it.
E-mail has to work
Sign-up depends on e-mail, because the visitor proves the address with the code sent to it. If the message cannot be sent, the page shows "Failed to send e-mail message! Please contact the site's administrator.", and no account is created.
Set up e-mail before turning sign-up on. See The e-mail notification system.
Protecting the form with reCAPTCHA
Tick Enable reCAPTCHA and fill in Site key and Secret key. Google gives you both at
https://www.google.com/recaptcha/admin.
The keys must be for reCAPTCHA v2, of the "I'm not a robot" checkbox type. Keys for reCAPTCHA v3 do not work.
The reCAPTCHA is on the first step, under the e-mail address. With reCAPTCHA on, the sign-up page loads a script from Google.
Sending people to your own sign-up page
If people register somewhere else — on your website, or in the system an authentication source
connects to — the Create account button can lead there instead. Fill in "Create account" URL,
in the URL customization fieldset of Security → Authentication.
That address is used only while FileRun's own sign-up is not available. With Enable sign up on,
the button leads to FileRun's form.
Sign-up creates regular accounts
Accounts created this way are regular user accounts, not guest accounts. Guests are invited by sharing files with them. See Guest accounts.