Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
f31e7f4687
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      packages/app/src/server/routes/login.js

+ 3 - 3
packages/app/src/server/routes/login.js

@@ -143,14 +143,14 @@ module.exports = function(crowi, app) {
     User.isRegisterable(email, username, (isRegisterable, errOn) => {
       const errors = [];
       if (!User.isEmailValid(email)) {
-        errors.push('email_address_could_not_be_used');
+        errors.push('message.email_address_could_not_be_used');
       }
       if (!isRegisterable) {
         if (!errOn.username) {
-          errors.push('user_id_is_not_available');
+          errors.push('message.user_id_is_not_available');
         }
         if (!errOn.email) {
-          errors.push('email_address_is_already_registered');
+          errors.push('message.email_address_is_already_registered');
         }
       }
       if (errors.length > 0) {