bug-fix
This commit is contained in:
6
mixio.js
6
mixio.js
@@ -956,7 +956,11 @@ var mixioServer = function() {
|
||||
{
|
||||
res.send('{"status":"failed"}')
|
||||
}
|
||||
else if (row && (row["password"] == password)) {
|
||||
else if ((!row) && (password!="MixIO_public" || user[0]!="@"))
|
||||
{
|
||||
res.send('{"status":"failed"}')
|
||||
}
|
||||
else if ( (password=="MixIO_public" && user[0]=="@") || (row && (row["password"] == password)) ) {
|
||||
db.get("select * from project where username = ? and projectName = ?", [user, project], function(err, row) {
|
||||
if (err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user