AuthMeReloaded icon indicating copy to clipboard operation
AuthMeReloaded copied to clipboard

/REG and /ChangePassword bug??

Open WaterXCubic opened this issue 11 years ago • 24 comments

I am using the lastest dev version and thats #17,i am just using a testing server,when the plugin tolds me to register,i used /reg WaterXCubic WaterXCubic and thats my username,i used tab to get it,it says they are not the same,i manully type it myself,and it also said that

However,i used /reg 123456 123456 and it worked fine

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

#17 is not the issue #17,its only dev project #17

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

Haven't understand the problem x) what's your username, what password do you try and what the result of it?

Xephi avatar Jul 05 '15 10:07 Xephi

It's because it's your name, we haven't a language string for this situation.

sgdc3 avatar Jul 05 '15 10:07 sgdc3

My username is WaterXCubic,and i am using WaterXCubic for the password and it says those password and repeat password are not same when i am registering

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

@sgdc3 It worked fine for previous stable version like 3.4 i think

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

I think the problem is: When I use my nickname as password it prints the "not the same" message

sgdc3 avatar Jul 05 '15 10:07 sgdc3

Yep

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

It should print: "You can't use your nickname as password!"

sgdc3 avatar Jul 05 '15 10:07 sgdc3

I am using ZHHK idk does it matter :P

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

@Xephi Right?

sgdc3 avatar Jul 05 '15 10:07 sgdc3

Also english and italian translation haven't an adequate string, but I remember this function was implemented, right?

sgdc3 avatar Jul 05 '15 10:07 sgdc3

:P

else if ((lowpass.equalsIgnoreCase(player.getName()) || lowpass.contains("delete") || lowpass.contains("where") || lowpass.contains("insert") || lowpass.contains("modify") || lowpass.contains("from") || lowpass.contains("select") || lowpass.contains(";") || lowpass.contains("null")) || !lowpass.matches(Settings.getPassRegex)) {
    m.send(player, "password_error");
    allowRegister = false;
}

From AsyncronousRegister.java

sgdc3 avatar Jul 05 '15 10:07 sgdc3

idk how to script,but actually,i can observer that is telling me that if the password contains player's name,it will not allow register

WaterXCubic avatar Jul 05 '15 10:07 WaterXCubic

IF PASSWORD lowpass.equalsIgnoreCase(player.getName()) SEND MESSAGE password_error

We should create a new message named password_error_nick

sgdc3 avatar Jul 05 '15 10:07 sgdc3

@Xephi

sgdc3 avatar Jul 05 '15 10:07 sgdc3

It also appends with unsafepasswords:

        if (!Settings.unsafePasswords.isEmpty()) {
            if (Settings.unsafePasswords.contains(password.toLowerCase())) {
                m.send(player, "password_error");
                return;
            }
        }

Solution: a new message named "password_error_unsafe"

sgdc3 avatar Jul 05 '15 11:07 sgdc3

Also in ChangePasswordCommand.java

sgdc3 avatar Jul 05 '15 11:07 sgdc3

Fixed in my PR

sgdc3 avatar Jul 05 '15 13:07 sgdc3

I asked for this feature (too many people is using unsafe password/their username). However, I told Xephi that we need a proper message for this error.

Maxetto avatar Jul 05 '15 18:07 Maxetto

it also needs an enable/disable option in the configuration

sgdc3 avatar Jul 05 '15 18:07 sgdc3