diff --git a/api.js b/api.js index 8e65c951..994e215e 100644 --- a/api.js +++ b/api.js @@ -130,7 +130,7 @@ function handleLogin(params, req, res) { var name = params.name || ""; var pw = params.pw || ""; - if(pw == "") { + if(pw == "" && session == "") { if(!Auth.isRegistered(name)) { sendJSON(res, { success: true, diff --git a/package.json b/package.json index 5541e419..19603689 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "1.3.2", + "version": "1.3.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/server.js b/server.js index 0f08ed6e..2c6895c0 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -const VERSION = "1.3.2"; +const VERSION = "1.3.3"; var fs = require("fs"); var Logger = require("./logger.js");