Hi,
I set up an anonymous account following the Wiki document "Enabling Anonymous Access" (http://www.mantisbt.org/wiki/doku.php/m ... ous_access).
It suggests to leave the email field empty. But when doing so, an error is given on the user account update page: APPLICATION ERROR #1200 Invalid email. (Mantis version 1.1.0a3.)
If I fill in some non-existing email address, mail errors are reported on the server.
How to solve this problem?
Anonymous login: how to keep the email field blank?
Moderators: Developer, Contributor
Anonymous login: how to keep the email field blank?
Regards, Arman
You have two options:
1. Create a forwarding email address that automatically deletes all mails sent to it (i.e. a dev null). Then use this as the email address for the anonymous account.
2. Set the allow blank email to ON. The disadvantage of this option is that other users will also be able to set their email to blank. But it is debatable that it is better to leave it empty than to give a bogus email address.
1. Create a forwarding email address that automatically deletes all mails sent to it (i.e. a dev null). Then use this as the email address for the anonymous account.
2. Set the allow blank email to ON. The disadvantage of this option is that other users will also be able to set their email to blank. But it is debatable that it is better to leave it empty than to give a bogus email address.
Code: Select all
# if ON, allow the user to omit an email field
# note if you allow users to create their own accounts, they
# must specify an email at that point, no matter what the value
# of this option is. Otherwise they wouldn't get their passwords.
$g_allow_blank_email = ON;
Migrate your MantisBT to the MantisHub Cloud