summaryrefslogtreecommitdiffstats
path: root/webapp/components/login
diff options
context:
space:
mode:
authorDavid Lu <david.lu97@outlook.com>2016-08-18 10:08:40 -0400
committerenahum <nahumhbl@gmail.com>2016-08-18 09:08:40 -0500
commitefb060a336bee414df6d6814369f696721e6437b (patch)
treec03a0061516fd94463bbf55903e0fdc9a55a28ab /webapp/components/login
parent2b277729fd0516b0cac9ec464e6a33749ceae4dd (diff)
downloadchat-efb060a336bee414df6d6814369f696721e6437b.tar.gz
chat-efb060a336bee414df6d6814369f696721e6437b.tar.bz2
chat-efb060a336bee414df6d6814369f696721e6437b.zip
Added error message for no signin methods (#3821)
Diffstat (limited to 'webapp/components/login')
-rw-r--r--webapp/components/login/login_controller.jsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx
index f84c30d51..f62464f37 100644
--- a/webapp/components/login/login_controller.jsx
+++ b/webapp/components/login/login_controller.jsx
@@ -527,6 +527,20 @@ export default class LoginController extends React.Component {
);
}
+ if (loginControls.length === 0) {
+ loginControls.push(
+ <FormError
+ error={
+ <FormattedMessage
+ id='login.noMethods'
+ defaultMessage='No sign in methods are enabled. Please contact your System Administrator.'
+ />
+ }
+ margin={true}
+ />
+ );
+ }
+
return (
<div>
{extraBox}