Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added method to serve static data (not perfect yet)

  • Loading branch information...
commit 402e25b5f3deab92411de0b1a124bb96d8dff93d 1 parent 0ce874c
@sschaetz authored
Showing with 9 additions and 4 deletions.
  1. +7 −3 client/gui.js
  2. +1 −1  server/server.py
  3. +1 −0  server/static
View
10 client/gui.js
@@ -18,14 +18,18 @@ starbase.gui.registration = {
$.ajax({
type: "POST",
url: starbase.config.host + "/createuser",
- data: { "user": "john", "authkey": "2pm" },
+ data: { "user": $("#user").val(),
+ "authkey":
+ starbase.crypto.derivation.generate_privatekey($("#password").val())
+ },
success: function(response)
{
- console.log("Yay! " + response);
+ sbox.html("Account created!");
+ sbox.css("visibility", "visible");
},
error: function(response)
{
- console.log("Nay! " + response);
+
}
});
},
View
2  server/server.py
@@ -228,7 +228,7 @@ def get_messages(self):
def create_app():
app = starbase()
app.wsgi_app = SharedDataMiddleware(app.wsgi_app, {
- '/static': ''
+ '/static': os.path.join(os.path.dirname(__file__), 'static')
})
return app
View
1  server/static
Please sign in to comment.
Something went wrong with that request. Please try again.