stormpath / stormpath-django

Django plugin for Stormpath
Apache License 2.0
38 stars 19 forks source link

API 400 errors don't become validation errors with user creation in admin #48

Open smcoll opened 9 years ago

smcoll commented 9 years ago

When creating a new StormpathUser in the admin's create view, if the password doesn't meet some requirement (try a too-short password like 'foo'), a 500 is raised, instead of a validation error in the form:

Error at /admin/django_stormpath/stormpathuser/add/ {u'status': 400, u'developerMessage': u'Account password minimum length not satisfied.', u'message': u'Account password minimum length not satisfied.', u'code': 2007, u'moreInfo': u'http://docs.stormpath.com/errors/2007'}

rdegges commented 9 years ago

Thanks! We're looking into this more now. Sorry for the delay.

rdegges commented 9 years ago

Ok, got this fixed, closing this out. Will be released once the other PRs are merged in.

@avojnovicDk did a great job of applying our full validation rules locally.

avojnovicDk commented 9 years ago

I'm reopening this, as I still have to call validate_password in django_stormpath, once it gets released in the Stormpath Python SDK.

rdegges commented 8 years ago

@avojnovicDk wanna hop back onto this one now? The new Python stuff is updated.