Fix 'that username is already taken' login bug

This commit is contained in:
calzoneman 2013-04-26 12:50:31 -05:00
parent d1b06413ee
commit d5fc0bb03d
3 changed files with 3 additions and 3 deletions

2
api.js
View File

@ -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,

View File

@ -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"
},

View File

@ -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");