fix?? reset node

This commit is contained in:
dr-frmr 2024-08-15 19:57:44 +02:00
parent b6bb9d8dd5
commit cc3b49d3af
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@ function ResetKnsName({
setDirect,
setReset,
knsName,
setKnsName,
setNetworkingKey,
setIpAddress,
setWsPort,
@ -74,6 +75,8 @@ function ResetKnsName({
return;
}
setKnsName(name + ".os");
try {
const data = await generateNetworkingKeys({
direct,

View File

@ -132,7 +132,7 @@ function SetPassword({
<form className="form" onSubmit={handleSubmit}>
<div className="form-group">
<Tooltip text="This password will be used to log in when you restart your node or switch browsers.">
<label className="form-label" htmlFor="password">Set Password</label>
<label className="form-label" htmlFor="password">Set password for {knsName}</label>
</Tooltip>
<input
type="password"

View File

@ -386,6 +386,9 @@ async fn handle_boot(
.recover_address_from_prehash(&hash)
.map_err(|_| warp::reject())?;
println!("recovered_address: {}", recovered_address);
println!("owner: {}", owner);
if recovered_address != owner {
attempts += 1;
tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;