aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-05-04 21:19:12 -0700
committerAdam Soltys <[email protected]>2014-05-04 21:19:12 -0700
commit8e2f50f434d373086758a23178e0c83004bb2a85 (patch)
treee02dc8236a8dedec169b303b3584d3f297d91729
parent61e5921e1fd719846af142209ad471a58a69e921 (diff)
downloadcoinos-server-8e2f50f434d373086758a23178e0c83004bb2a85.tar.gz
coinos-server-8e2f50f434d373086758a23178e0c83004bb2a85.zip
Notice to merchants
-rw-r--r--routes/users.coffee13
-rw-r--r--views/sessions/new.html15
2 files changed, 24 insertions, 4 deletions
diff --git a/routes/users.coffee b/routes/users.coffee
index 73c78234..1113a4e4 100644
--- a/routes/users.coffee
+++ b/routes/users.coffee
@@ -31,10 +31,15 @@ module.exports = (sessions) ->
)
show: (req, res) ->
- res.render('calculator/show',
- user: req.params.user,
- js: (-> global.js),
- css: (-> global.css)
+ db.hgetall("user:"+req.params.user, (err, obj) ->
+ if obj
+ res.render('calculator/show',
+ user: req.params.user,
+ js: (-> global.js),
+ css: (-> global.css)
+ )
+ else
+ res.redirect('/login')
)
new: (req, res) ->
diff --git a/views/sessions/new.html b/views/sessions/new.html
index c3ae64c8..897a1a98 100644
--- a/views/sessions/new.html
+++ b/views/sessions/new.html
@@ -7,10 +7,25 @@
<link href="img/favicon.ico?v2" rel="shortcut icon" />
{{#css}}calculator{{/css}}
{{#js}}modernizr-2.6.2-respond-1.1.0.min.js{{/js}}
+ <style>
+.notice { border: 1px solid gray; background: #eee; padding: 10px; }
+</style>
</head>
<body>
<div class="container-fluid">
<div id="main-logo"></div>
+ <div class="notice">
+ <h2>Notice to Merchants</h2>
+ <p>On May 3, 2014, our hosting provider experienced a technical glitch that caused our server to be wiped out along with our database and backups. Unfortunately this means that all CoinOS accounts will need to be recreated. We're taking measures to ensure that we have off-site backups and redundant hosting in place so that this won't happen again. Please contact us at <a href="mailto:[email protected]">[email protected]</a> and we'll provide a fuller explanation and help you get up and running again. Our volunteer representatives will also be going out to visit some of you in the coming days.
+ </p>
+ <p> We're so sorry for the inconvenience and want to take this opportunity to let you know that we appreciate you using our system and working with us. We've got lots of improvements in the works that we're excited to share with you soon.
+ </p>
+ <p>
+ Regards,<br />
+ Adam Soltys
+ </p>
+ </div>
+
<form action="login" method="post">
<h2>Login</h2>