Forum OpenACS Q&A: auth::create_user with no e-mail

Collapse
Posted by Ben Chan on
I want to create acs users in the system, but the authentication is done externally and unique usernames are guaranteed.  However, there are no e-mail address associated with these users.

I call auth::create_user and fill in the username, first_names, last_name parameter, but when I execute it, it says I require e-mail which I don't have.

Is there any way around this?

Collapse
Posted by Ben Chan on
Found this old thread back from 2001:
username instead of emails for login
I guess one solution is to make a dummy e-mail address, but I'd rather not do that as a security precaution with the system sending out e-mails.
Collapse
Posted by Ben Chan on
More detailed explanation here:

Elimination of email as center of OACS registration

I'm running OpenACS 5.0.2. Does this support the no-email user creation? the api-doc for auth::create_user says that email is optional, but it returns an error and doesn't create the user.
Collapse
Posted by Ben Chan on
Sorry, I'm just digging this stuff up as I go along, so that others can read up on it if they ever run into same problem.

auth::UseEmailForLoginP can be used to see if the parameter is set up for email login or not.