mirror of https://github.com/calzoneman/sync.git
Fix 'that username is already taken' login bug
This commit is contained in:
parent
d1b06413ee
commit
d5fc0bb03d
2
api.js
2
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,
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue