You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2019/03/07 16:18:44 UTC
[ignite] branch master updated: WC-964 Web Console: Minor tweak of
error message.
This is an automated email from the ASF dual-hosted git repository.
akuznetsov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 9dd4f75 WC-964 Web Console: Minor tweak of error message.
9dd4f75 is described below
commit 9dd4f75580e26908a9543d23888086f80c2d559f
Author: Alexander Kalinin <ve...@yandex.ru>
AuthorDate: Thu Mar 7 23:18:28 2019 +0700
WC-964 Web Console: Minor tweak of error message.
---
modules/web-console/backend/app/schemas.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/web-console/backend/app/schemas.js b/modules/web-console/backend/app/schemas.js
index fe3c637..808bfd4 100644
--- a/modules/web-console/backend/app/schemas.js
+++ b/modules/web-console/backend/app/schemas.js
@@ -55,7 +55,10 @@ module.exports.factory = function(mongoose) {
// Install passport plugin.
Account.plugin(passportMongo, {
usernameField: 'email', limitAttempts: true, lastLoginField: 'lastLogin',
- usernameLowerCase: true
+ usernameLowerCase: true,
+ errorMessages: {
+ UserExistsError: 'A user with the given email is already registered'
+ }
});
const transform = (doc, ret) => {