This commit is contained in:
unknown
2024-10-06 13:24:29 +08:00
parent 3810d24315
commit cb62638d55
2 changed files with 6 additions and 2 deletions

View File

@@ -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)
{