Skip to content

Commit

Permalink
Adds notice to show salt
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Feb 15, 2014
1 parent 88a493d commit ef19d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/index.html
Expand Up @@ -31,7 +31,8 @@ <h1 class="form-signup-heading">Register your handshake.js app_name</h1>

$.post("https://handshakejs.herokuapp.com/api/v0/apps/create", payload, function(json) {
if (json.success) {
window.location = "/success.html?app_name="+app_name;
var app = payload.app;
window.location = "/success.html?app_name="+app.app_name+"&salt="+payload.app.salt;
// redirect here since it was a success
} else {
alert(json.error.message);
Expand Down
2 changes: 2 additions & 0 deletions public/success.html
Expand Up @@ -13,6 +13,7 @@
<h1>Success</h1>

<p>Your app_name is: <strong class="app-name">app_name here</strong></p>
<p>Your salt is: <strong class="salt">salt here</strong></p>

<p>Now you can proceed to use <a href="https://github.com/scottmotte/handshake-js">handshake.js</a> in your application. See the <a href="https://github.com/scottmotte/handshake-js">README</a> for how to add handshake.js to your application.</p>

Expand All @@ -25,6 +26,7 @@ <h3>Prefer to host your own?</h3>
<script type="text/javascript">
var params = $.url(window.location.href).param();
$(".app-name").html(params.app_name);
$(".salt").html(params.salt);
</script>
</body>
</html>

0 comments on commit ef19d4f

Please sign in to comment.