User Picture/Email Auth. Problem

User Picture/Email Auth. Problem

di Max Parish -
Numero di risposte: 6
Here is a curious problem: When I first set up my courses, the user profiles for the students would not accept msn or hotmail addresses. I found a forum which instructed me to // out a certain field in one of the files (I forget exactly which one), which fixed the problem.

Now, when my students go to upload a picture in their user profile, when they click save, it flags the email address as being invalid, and thus won't save the picture.

I don't know if the problems are related.

I'm not an expert with code, but I can modify files as needed if given instructions.

Thanks for you help!

-Max
Media dei voti: -
In riposta a Max Parish

Re: User Picture/Email Auth. Problem

di Jon Witts -
Immagine Particularly helpful Moodlers Immagine Plugin developers Immagine Testers
You can specify which email addresses are valid or invalid in your site administration.

In Moodle 1.9 go to Administration > Users > Authentication > Manage Authentication and check that msn and hotmail domain names are not in the denied email domains field.
In riposta a Jon Witts

Re: User Picture/Email Auth. Problem

di Max Parish -
Thanks! I just found the problem, and it was even simpler than that. I would feel rather bashful except that it would be hard to spot unless you know what you are looking for. When I copied in my student's email addresses from a student record sheet, I had copied in a space or two at the end of the address. Moodle was viewing the space as part of the address, and correctly counting it as invalid!

Anyway, thanks for taking the time to comment, and sorry for clogging the forum with such a simple issue!

-Max
In riposta a Max Parish

Re: User Picture/Email Auth. Problem

di Tim Hunt -
Immagine Core developers Immagine Documentation writers Immagine Particularly helpful Moodlers Immagine Peer reviewers Immagine Plugin developers
Hmm. Perhaps Moodle should be stripping extra white-space off the start and end of email address fields. Can a valid email address ever start with a space? (They certainly can't end with one. They end with a domain name like .com)
In riposta a Tim Hunt

Re: User Picture/Email Auth. Problem

di Jon Witts -
Immagine Particularly helpful Moodlers Immagine Plugin developers Immagine Testers
From what I can make out from http://tools.ietf.org/html/rfc5322 spaces would only be valid in any part of the local part of the email address if they were inside quotation marks...