diff --git a/customize.dist/login.js b/customize.dist/login.js index 9cb9765fb..74e5e86f6 100644 --- a/customize.dist/login.js +++ b/customize.dist/login.js @@ -535,8 +535,7 @@ define([ }); break; case 'E_RESTRICTED': - Messages.register_restrictedError = "Registration is restricted on this instance"; // XXX - UI.errorLoadingScreen(Messages.register_restrictedError); // XXX + UI.errorLoadingScreen(Messages.register_registrationIsClosed); break; default: // UNHANDLED ERROR hashing = false; diff --git a/customize.dist/pages/register.js b/customize.dist/pages/register.js index b8f82116d..cf05defa5 100644 --- a/customize.dist/pages/register.js +++ b/customize.dist/pages/register.js @@ -31,10 +31,9 @@ define([ }; if (Config.restrictRegistration) { - Msg.register_closed = "This instance does not allow registration at the moment."; // XXX return frame([ h('div.cp-restricted-registration', [ - h('p', Msg.register_closed), + h('p', Msg.register_registrationIsClosed), ]) ]); } diff --git a/www/register/main.js b/www/register/main.js index 2c66aebb4..4c63e4482 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -15,7 +15,6 @@ define([ 'css!/bower_components/components-font-awesome/css/font-awesome.min.css', ], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) { var Messages = Cryptpad.Messages; - Messages.register_registrationIsClosed = "REGISTRATION IS CLOSED ON THIS INSTANCE."; // XXX $(function () { if (LocalStore.isLoggedIn()) { // already logged in, redirect to drive