Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user login #2

Closed
acdp10000 opened this issue Jun 28, 2020 · 2 comments
Closed

user login #2

acdp10000 opened this issue Jun 28, 2020 · 2 comments

Comments

@acdp10000
Copy link

Hi i have notice account with user name with a - dont allow login is there any way to fix this issue?

@lKinderBueno
Copy link
Owner

lKinderBueno commented Jun 29, 2020

Yes, I forgot to delete a part from the Streamity main website file.
Go in "logDir/login/" and open the "Login.php" file.
Remove this part:

if (!preg_match("/^[0-9a-zA-Z������������������������_]+$/", $user) && !preg_match("/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$/", $user))
    {
        $msg_login = "Username or password not valid";
        return;
    }

    if ((strpos($user, ' ') !== false) || strpos($user, '-') !== false || strpos($user, "'") !== false || strpos($user, '"') !== false)
    {
        $msg_login = "Username or password not valid";
        return;
    }
    if ((strpos($password, ' ') !== false) || strpos($password, "'") !== false || strpos($password, '"') !== false)
    {
        $msg_login = "Username or password not valid";
        return;
    }

Or you can download the 1.1 fixed version

@acdp10000
Copy link
Author

acdp10000 commented Jun 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants