mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed ui auth
This commit is contained in:
@@ -164,10 +164,10 @@ impl AuthActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check username
|
// Check username
|
||||||
if self.username.len() == 0 {
|
//if self.username.len() == 0 {
|
||||||
self.popup_message = Some(String::from("Invalid username"));
|
// self.popup_message = Some(String::from("Invalid username"));
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
// Everything OK, set enter
|
// Everything OK, set enter
|
||||||
self.submit = true;
|
self.submit = true;
|
||||||
self.popup_message =
|
self.popup_message =
|
||||||
@@ -231,8 +231,8 @@ impl AuthActivity {
|
|||||||
self.protocol = match self.protocol {
|
self.protocol = match self.protocol {
|
||||||
FileTransferProtocol::Sftp => FileTransferProtocol::Ftp(true), // End of list (wrap)
|
FileTransferProtocol::Sftp => FileTransferProtocol::Ftp(true), // End of list (wrap)
|
||||||
FileTransferProtocol::Ftp(ftps) => match ftps {
|
FileTransferProtocol::Ftp(ftps) => match ftps {
|
||||||
true => FileTransferProtocol::Sftp,
|
true => FileTransferProtocol::Ftp(false),
|
||||||
false => FileTransferProtocol::Ftp(true),
|
false => FileTransferProtocol::Sftp,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user