Skip to content

Commit

Permalink
Merge pull request thelounge#315 from maxpoulin64/empty-password
Browse files Browse the repository at this point in the history
Don't check for existing password emptyness
  • Loading branch information
astorije committed May 11, 2016
2 parents f83ab71 + 048290d commit e13c352
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ function init(socket, client, token) {
var old = data.old_password;
var p1 = data.new_password;
var p2 = data.verify_password;
if (typeof old === "undefined" || old === "") {
socket.emit("change-password", {
error: "Please enter your current password"
});
return;
}
if (typeof p1 === "undefined" || p1 === "") {
socket.emit("change-password", {
error: "Please enter a new password"
Expand Down

0 comments on commit e13c352

Please sign in to comment.