From 822559afd889262f0dc6989531a54a21a01beadc Mon Sep 17 00:00:00 2001
From: raeno <just.raeno@gmail.com>
Date: Mon, 3 Dec 2018 22:43:58 +0400
Subject: Humanize validation errors returned on registration

---
 src/components/registration/registration.vue | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/components/registration/registration.vue')

diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue
index 087cab6b..867e26f0 100644
--- a/src/components/registration/registration.vue
+++ b/src/components/registration/registration.vue
@@ -49,8 +49,10 @@
           <div class='terms-of-service' v-html="termsofservice">
           </div>
         </div>
-        <div v-if="error" class='form-group'>
-          <div class='alert error'>{{error}}</div>
+        <div v-if="errors.length" class='form-group'>
+          <div class='alert error'>
+            <span v-for="error in errors">{{error}}</span>
+          </div>
         </div>
       </form>
     </div>
-- 
cgit v1.2.3-70-g09d2

