[ic] username required to be an email address

Russ Mann interchange-users@lists.akopia.com
Mon Jul 2 16:45:51 2001


Hello,

For my IC 4.6.5 shop, it is necessary to require the usernames to be in the
form of an email address.  How can I require this?

I've setup this in /etc/profiles.order

__NAME__                            new_account
mv_username=email	"Login email address must be in the form of
name@domain.com."
__END__

And this is my new_account.html form:

<form action="[process-target]" method="post">
<input type="hidden" name="mv_check" value="NewAccount">
<input type="hidden" name="mv_doit"  value="return">
<input type="hidden" name="function"  value="new_account">
<input type="hidden" name="mv_nextpage" value="account">
<input type="hidden" name="ignore_case" value="1">
E-Mail Address: <input type="text" name="mv_username" value=""
size="30"><br>
Password: <input type="password" name="mv_password" value="" size="30"><br>
Verify Password: <input type="password" name="mv_verify" value=""
size="30"><br>
<input type="hidden" name="mv_cookie_password" value="0">
<input type="hidden" name="mv_order_profile" value="new_account">
<input type="submit" value="Create Account">
</form>

It seems like this should do it, but this happily allows me to create
accounts that aren't in the form of an email address.

Thanks,

Russ