Skip to content

Commit

Permalink
Merge branch 'master' into frontendFrameworkSwitch-IntegratingAngular
Browse files Browse the repository at this point in the history
  • Loading branch information
tameeshB authored Dec 31, 2017
2 parents f108109 + ef00935 commit a307e18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ A VERY reliable way to communicate on the internet.
An end-to-end encrypted decentralised cross-platform chat application.



## Install
First, get node, if you don't already [Official website downloads](https://nodejs.org/en/download/) or just brew/apt-get them(node, npm).
```
git clone https://github.com/tameeshB/sockChat.git
cd sockChat
npm install
node server.js
```
5 changes: 4 additions & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ module.exports = function (passport, app) {
return done(err);
//check dupes
if (user) {
return done(null, false, req.flash('signupMessage', 'That email/username is already taken.'));
if (user.username == req.body.uname)
return done(null, false, req.flash('signupMessage', 'That username is already taken.'));
else
return done(null, false, req.flash('signupMessage', 'That email is already taken.'));
} else {
var newUser = new User();

Expand Down

0 comments on commit a307e18

Please sign in to comment.