allow signups while using alternative auth backend(2)

This commit is contained in:
j 2013-11-16 14:16:20 +00:00
commit f82f2d8b07
2 changed files with 6 additions and 1 deletions

View file

@ -166,6 +166,11 @@ pandora.ui.accountForm = function(action, value) {
pandora.signin(result.data);
pandora.ui.accountWelcomeDialog().open();
} else {
Ox.forEach(result.data.errors, function(value, key) {
if (['username', 'password', 'email'].indexOf(key) > -1) {
that.setMessages([{id: key, message: Ox._(result.data.errors[key])}]);
}
});
pandora.$ui.accountDialog.enableButtons();
}
});