Tell user to contact admin email to register

This commit is contained in:
James Allen 2015-03-18 16:20:26 +00:00
parent 93a088618a
commit d76ef86077
3 changed files with 7 additions and 38 deletions

View file

@ -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" 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 res.statusCode = error.status or 500
if res.statusCode == 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 else
res.end() res.end()

View file

@ -16,43 +16,11 @@ block content
a(href="/login") #{translate("login_here")} a(href="/login") #{translate("login_here")}
.row .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 .card
.page-header .page-header
h1 #{translate("register")} h1 #{translate("register")}
form(async-form="register", name="registerForm", action="/register", method="POST", ng-cloak) p
input(name='_csrf', type='hidden', value=csrfToken) | Please contact
input(name='redir', type='hidden', value=redir) strong #{settings.adminEmail}
form-messages(for="registerForm") | to create an account.
.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")}...

View file

@ -266,6 +266,7 @@ module.exports =
# projectId: "" # projectId: ""
appName: "ShareLaTeX (Community Edition)" appName: "ShareLaTeX (Community Edition)"
adminEmail: "placeholder@example.com"
nav: nav:
title: "ShareLaTeX Community Edition" title: "ShareLaTeX Community Edition"