Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

admin field

  • Loading branch information...
commit 8951f382250830e3bab0ff2bc66234d20ee62b5d 1 parent bdfa2c5
James Halliday authored
1  data/users.json
View
@@ -22,6 +22,7 @@
"substack" : {
"hash" : "dce1198b941cdda02f092c9702ee8d0a3efeb89aec50f95bfd31b778a2109cfcb0979fbbec6df4d27ff0da9bc9efb4806ab563bfd4e960ba5a5f2b2fe683e273",
"contacts" : ["moo", "pkrumins", "ik"],
+ "admin" : true,
"disks" : {
"linux-0.2.img" : {
"name" : "simple linux",
1  lib/models/user.js
View
@@ -22,6 +22,7 @@ function User (params) {
self.name = params.name;
self.hash = params.hash;
+ self.admin = params.admin;
self.directories = {
disks : __dirname + '/../../users/' + self.name + '/disks/',
12 views/login_bar.html
View
@@ -0,0 +1,12 @@
+<% if (user) { %>
+ <form action='/logout' method='post'>
+ signed in as <%= user.name %>
+ <input type='submit' value='logout'>
+ </form>
+<% } else { %>
+ <form action='/' method='post'>
+ <input type='text' name='user'>
+ <input type='password' name='pass'>
+ <input type='submit' value='sign in'>
+ </form>
+<% } %>
0  views/index.html → views/pages/index.html
View
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.