From c93ce7af3fc89ba3f76517245d18f55b238beb11 Mon Sep 17 00:00:00 2001 From: David Lu Date: Tue, 23 Aug 2016 02:34:45 -0400 Subject: fixed signup (#3858) --- webapp/components/signup/signup_controller.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/components/signup/signup_controller.jsx b/webapp/components/signup/signup_controller.jsx index a0587bba9..67d3b0c4f 100644 --- a/webapp/components/signup/signup_controller.jsx +++ b/webapp/components/signup/signup_controller.jsx @@ -33,11 +33,12 @@ export default class SignupController extends React.Component { if (props.location.query) { loading = true; const hash = props.location.query.h; + const inviteId = props.location.query.id; if (hash && hash.length > 0 && !UserStore.getCurrentUser()) { usedBefore = BrowserStore.getGlobalItem(hash); loading = false; - } else if (global.window.mm_config.EnableOpenServer !== 'true' && !UserStore.getNoAccounts()) { + } else if (!inviteId && global.window.mm_config.EnableOpenServer !== 'true' && !UserStore.getNoAccounts()) { noOpenServerError = true; loading = false; serverError = ( -- cgit v1.2.3-1-g7c22