Thursday, September 5, 2013

Customize error messages for django-registration

Hi, I have a question about django-registration (https://bitbucket.org/ubernostrum/django-registration), but I can't find their issue tracker or a mailing list for it, so I'll try mu luck here.

My application enables login via OpenID and login/password.

Some users "forget their password" on FS on try to reset it (here), but then they get the message:

The user account associated with this e-mail address cannot reset the password.
 
With no further explanations.
(You can try and reset *my* password - just type my email (tonylampada at gmail dot com) there to see the error message.

I want to customize that message. A better message would be:

The user account associated with this e-mail address cannot reset the password.
This happens because the user account was created with an OpenID or OAuth provider (tipically Google, Facebook, MyOpenID, etc). 
To see the login provider(s) associated with this account, take a look at the user profile.

What is the easiest way to tell django-registration that?

Thanks!

PS: This issue on github: https://github.com/freedomsponsors/www.freedomsponsors.org/issues/191 (just in case you're feeling like making a pull request today :-))

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment