Jump to content

Recommended Posts

Posted

Hi all,

 

How can I stop the e-mail field (when updating the profile) in Moodle from being mandatory please?

 

Thanks

 

Z

Posted
Just been looking at the Moodle demo and you could change the authentication type so it's set at no authentication. That way it doesn't matter what email address the user enters. That might work.
Posted

My moodle setup authenticates users using LDAP it automatically fills the e-mail filed in for most users. But our year 7’s don’t have e-mail so I don’t want to make it mandatory so it doesn’t make them put an address in.

 

Off topic but has anyone had problems with moodle pulling e-mail addresses from AD? It doesn’t always work first time on my setup.

Posted (edited)
You could change the field to locked? That way users won't be able to edit the email field and therefore Moodle shouldn't complain about it being blank? Edited by Edu-IT
Posted

Edit: you edited the post lol this is what it said before

 

If you're pulling the information from AD then users don't need to register at all do they so surely it doesn't matter? Sorry if I've not understood what you mean.

 

No they don’t need to register but when they login for the first time the “update profile” page comes up. If you look on my previous posts I didn’t say when registering, sorry I should have made it more clear.

 

You could change the field to locked? That way users won't be able to edit the email field and therefore Moodle shouldn't complain about it being blank?

 

i'm pretty sure it still complains.

Posted
Are you able to try it? I do not have an installation of Moodle and the demo ones don't allow you full control. If it does then why not just populate the field with a dummy address?
Posted
Yep I have an installation on my work laptop, I will try tomorrow if it works but im pretty sure it doesn’t.
Posted
When using LDAP authentication, there is no requirement for email addresses to be present. Email addresses only become mandatory when you enable the 'Email based self registration' authentication plugin.
  • Thanks 1
Posted
When using LDAP authentication, there is no requirement for email addresses to be present. Email addresses only become mandatory when you enable the 'Email based self registration' authentication plugin.

 

Nope I get the error saying invalid e-mail address

Posted
No When you first login you get a page to update your profile.

So did you try what I suggested? I've been looking again today and if that doesn't work then I have no idea. It doesn't appear to be possible. As I said before you could just put dummy information into the email field.

Posted

We had this problem at one point unfortunatly we now have a script to create users directly for our database. This might work:

 

In LDAP settings don't assign an e-mail field but set it to be locked.

 

Does your OU not hold e-mail addresses?

 

Sorry not to be more help.

 

Cheers

Jona

Posted
So did you try what I suggested? I've been looking again today and if that doesn't work then I have no idea. It doesn't appear to be possible. As I said before you could just put dummy information into the email field.

 

Sorry i missed that bit out, yes i tried that

 

We had this problem at one point unfortunatly we now have a script to create users directly for our database. This might work:

 

In LDAP settings don't assign an e-mail field but set it to be locked.

 

Does your OU not hold e-mail addresses?

 

Sorry not to be more help.

 

Cheers

Jona

 

I dont get what you mean, sorry

Posted
Nothing really but i would rather have it blank before i do that.

I think Moodle requires email addresses because the user has the option to send email messages when a new forum topic is posted etc.

Posted

To clarify what I was trying to say (admittedly a long shot).

 

Navigate to your LDAP authentication plug settings page in moodle "Settings link in Administration > Users > Authentication"

 

Scroll down until you get to Email: then set Lock value to be "Locked" (See screenshot).

moodle.JPG

Posted
To clarify what I was trying to say (admittedly a long shot).

 

Navigate to your LDAP authentication plug settings page in moodle "Settings link in Administration > Users > Authentication"

 

Scroll down until you get to Email: then set Lock value to be "Locked" (See screenshot).

 

Thanks anyway, but i tried that.

 

It is possible, I tried this today at work.

 

Read this post on the moodle.org webstie and edit the relevant PHP files, you can choose whether e-mail is mandatory or not, and it does work!!

 

http://moodle.org/mod/forum/discuss.php?d=79669

 

Mike.

 

thanks i will have a look on Wednesday (day off tomorrow)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...