Permalink
Browse files

Adding login image

  • Loading branch information...
1 parent 3929a8e commit af7dee52c4377708d5553ddba7d84385da887362 David Petersen committed Feb 11, 2012
Showing with 6 additions and 1 deletion.
  1. +3 −1 lib/irchandler.js
  2. +3 −0 views/templates.jade
View
4 lib/irchandler.js
@@ -9,6 +9,8 @@ var UserSchema = new Schema({
password: String
});
+var clients = [];
+
var User = mongoose.model('User', UserSchema);
mongoose.connect('mongodb://localhost/my_database');
@@ -53,7 +55,7 @@ var irchandler = exports.irchandler = function(socket) {
bcrypt.compare(data.password, user.password, function(err, res) {
socket.emit('loginStatus', {res: res});
if(res === true){
- client.logged_in = true;
+ //client.logged_in = true;
console.log('logged in');
} else {
console.log('Wrong password');
View
3 views/templates.jade
@@ -34,6 +34,9 @@ script(id="overview_home", type="text/html")
li.overview_button#settings
img(src="/assets/images/settings.svg")
span Settings
+ li.overview_button#login
+ img(src="/assets/images/login.svg")
+ span Login
script(id="overview", type="text/html")
#overview

0 comments on commit af7dee5

Please sign in to comment.