only proceed if y was selected

master
rasul 5 years ago
parent 3b47837bdb
commit db8e3cf1f7

@ -58,7 +58,7 @@ impl Game {
// username not found
Login::CreateUser(username) => {
if !message.clone().is_empty() && message != "n" {
if !message.clone().is_empty() && message == "y" {
send_queue.push(token, "\nNew password: ", false, None);
client.state = State::Login(Login::CreatePassword(username.to_owned()));
} else {

Loading…
Cancel
Save