mitodl / teachersportal

MIT ODL Teacher's Portal
0 stars 0 forks source link

Custom error message when account has not been activated #481

Open pdpinch opened 8 years ago

pdpinch commented 8 years ago

We currently return the same error message for all login errors. This is particularly confusing for users who have just registered, but haven't yet activated their account.

In this situation, edX returns a custom error:

We couldn't sign you in. This account has not been activated. We have sent another activation message. Please check your email for the activation instructions.

pdpinch commented 8 years ago

also make the generic error a little more helpful: "Invalid credentials"

When the user hasn't activated: "You have not yet activated. Check your email for activation instructions"