/REG and /ChangePassword bug??
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
#17 is not the issue #17,its only dev project #17
Haven't understand the problem x) what's your username, what password do you try and what the result of it?
It's because it's your name, we haven't a language string for this situation.
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
@sgdc3 It worked fine for previous stable version like 3.4 i think
I think the problem is: When I use my nickname as password it prints the "not the same" message
Yep
It should print: "You can't use your nickname as password!"
I am using ZHHK idk does it matter :P
@Xephi Right?
Also english and italian translation haven't an adequate string, but I remember this function was implemented, right?
: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
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
IF PASSWORD lowpass.equalsIgnoreCase(player.getName()) SEND MESSAGE password_error
We should create a new message named password_error_nick
@Xephi
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"
Also in ChangePasswordCommand.java
Fixed in my PR
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.
it also needs an enable/disable option in the configuration