From d76ef86077fd5ad5e508a97b3382b8dc8d7cbff5 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 18 Mar 2015 16:20:26 +0000 Subject: [PATCH] Tell user to contact admin email to register --- services/web/app.coffee | 2 +- services/web/app/views/user/register.jade | 42 +++----------------- services/web/config/settings.defaults.coffee | 1 + 3 files changed, 7 insertions(+), 38 deletions(-) diff --git a/services/web/app.coffee b/services/web/app.coffee index 89faaba987..f7cf82841d 100644 --- a/services/web/app.coffee +++ b/services/web/app.coffee @@ -18,7 +18,7 @@ Server.app.use (error, req, res, next) -> logger.error err: error, url:req.url, method:req.method, user:req?.sesson?.user, "error passed to top level next middlewear" res.statusCode = error.status or 500 if res.statusCode == 500 - res.end("Oops, something went wrong with your request, sorry. If this continues, please contact us at support@sharelatex.com") + res.end("Oops, something went wrong with your request, sorry. If this continues, please contact us at #{Settings.adminEmail}") else res.end() diff --git a/services/web/app/views/user/register.jade b/services/web/app/views/user/register.jade index 7f76787631..96db403f1c 100644 --- a/services/web/app/views/user/register.jade +++ b/services/web/app/views/user/register.jade @@ -16,43 +16,11 @@ block content a(href="/login") #{translate("login_here")} .row - .col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4 + .col-md-8.col-md-offset-2.col-lg-6.col-lg-offset-3 .card .page-header h1 #{translate("register")} - form(async-form="register", name="registerForm", action="/register", method="POST", ng-cloak) - input(name='_csrf', type='hidden', value=csrfToken) - input(name='redir', type='hidden', value=redir) - form-messages(for="registerForm") - .form-group - label(for='email') #{translate("email")} - input.form-control( - type='email', - name='email', - placeholder="email@example.com" - required, - ng-model="email", - ng-init="email = #{JSON.stringify(new_email)}", - ng-model-options="{ updateOn: 'blur' }", - focus="true" - ) - span.small.text-primary(ng-show="registerForm.email.$invalid && registerForm.email.$dirty") - | #{translate("must_be_email_address")} - .form-group - label(for='password') #{translate("password")} - input.form-control( - type='password', - name='password', - placeholder="********", - required, - ng-model="password" - ) - span.small.text-primary(ng-show="registerForm.password.$invalid && registerForm.password.$dirty") - | #{translate("required")} - .actions - button.btn-primary.btn( - type='submit' - ng-disabled="registerForm.inflight" - ) - span(ng-show="!registerForm.inflight") #{translate("register")} - span(ng-show="registerForm.inflight") #{translate("registering")}... + p + | Please contact + strong #{settings.adminEmail} + | to create an account. diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index fe015b8785..f5628b2479 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -266,6 +266,7 @@ module.exports = # projectId: "" appName: "ShareLaTeX (Community Edition)" + adminEmail: "placeholder@example.com" nav: title: "ShareLaTeX Community Edition"