Merge pull request #315 from maxpoulin64/empty-password
Don't check for existing password emptyness
This commit is contained in:
commit
91f016c62f
@ -137,12 +137,6 @@ function init(socket, client, token) {
|
|||||||
var old = data.old_password;
|
var old = data.old_password;
|
||||||
var p1 = data.new_password;
|
var p1 = data.new_password;
|
||||||
var p2 = data.verify_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 === "") {
|
if (typeof p1 === "undefined" || p1 === "") {
|
||||||
socket.emit("change-password", {
|
socket.emit("change-password", {
|
||||||
error: "Please enter a new password"
|
error: "Please enter a new password"
|
||||||
|
Loading…
Reference in New Issue
Block a user