From b8ae4114d7adf9ee037e5f8f1b8fb499c0ded9f7 Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Mon, 8 Feb 2016 14:16:04 -0800
Subject: Provides error message on user sign-up page when no sign-up methods
 are enabled

---
 web/react/components/signup_user_complete.jsx | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'web/react/components/signup_user_complete.jsx')

diff --git a/web/react/components/signup_user_complete.jsx b/web/react/components/signup_user_complete.jsx
index 672213d1a..b770a2a2c 100644
--- a/web/react/components/signup_user_complete.jsx
+++ b/web/react/components/signup_user_complete.jsx
@@ -362,6 +362,17 @@ class SignupUserComplete extends React.Component {
             );
         }
 
+        if (signupMessage.length === 0 && !emailSignup) {
+            emailSignup = (
+                <div>
+                    <FormattedMessage
+                        id='signup_user_completed.none'
+                        defaultMessage='No user creation method has been enabled.  Please contact an administrator for access.'
+                    />
+                </div>
+            );
+        }
+
         return (
             <div>
                 <form>
-- 
cgit v1.2.3-1-g7c22

