Skip to content

Commit

Permalink
New tool - Change Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
reazuliqbal committed Apr 16, 2023
1 parent f5c15d7 commit 9ac844a
Show file tree
Hide file tree
Showing 7 changed files with 721 additions and 270 deletions.
145 changes: 145 additions & 0 deletions change-keys.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous"
/>

<link rel="stylesheet" href="css/app.css" />
<title>Hive Account Recovery - Change Keys</title>
</head>

<body>
<div class="container pt-3">
<a href="./">
<h1 class="text-center">Hive Account Recovery</h1>
</a>
<hr />
<h2 class="text-center mb-5">Change Keys</h2>

<div class="row">
<div class="offset-md-2 col-md-8">
<p class="text-muted">
Please be extra careful while using this tool, all changes will have
immediate effect, and there is no way to revert back unless you have
the private owner key.
</p>

<div class="alert" id="alert-change-keys"></div>

<form id="change-keys" class="mt-5 mb-5">
<div class="form-group">
<label for="hive-username">Username</label>
<input
type="text"
name="hive-username"
id="hive-username"
class="form-control"
autocomplete="off"
required
/>
<p class="form-text text-muted">
Hive username of account you are updating the keys for.
</p>
</div>

<div class="form-group">
<label for="public-owner-key">Public Owner Key</label>
<input
type="text"
name="public-owner-key"
id="public-owner-key"
class="form-control"
autocomplete="off"
placeholder="STM...."
/>
</div>

<div class="form-group">
<label for="public-active-key">Public Active Key</label>
<input
type="text"
name="public-active-key"
id="public-active-key"
class="form-control"
autocomplete="off"
placeholder="STM...."
/>
</div>

<div class="form-group">
<label for="public-posting-key">Public Posting Key</label>
<input
type="text"
name="public-posting-key"
id="public-posting-key"
class="form-control"
autocomplete="off"
placeholder="STM...."
/>
</div>

<div class="form-group">
<label for="public-memo-key">Public Memo Key</label>
<input
type="text"
name="public-memo-key"
id="public-memo-key"
class="form-control"
autocomplete="off"
placeholder="STM...."
/>
</div>

<div class="form-group">
<label for="private-owner-key" class="control-label"
>Private Owner Key</label
>
<input
type="password"
name="private-owner-key"
id="private-owner-key"
class="form-control"
/>
<p class="form-text text-muted">
Current Private Owner key of the Hive account.
</p>
</div>

<button class="btn btn-success btn-block">Change Keys</button>
</form>
</div>
</div>

<hr />
<div class="text-center">
<p>
Brought to you by
<a href="https://hive.blog/@reazuliqbal">@reazuliqbal</a>
</p>

<a
href="javascript:void(0);"
class="small text-info"
onclick="voteHiveWitness()"
>Vote Witness</a
>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/@hiveio/[email protected]/dist/dhive.js"></script>
<script src="js/app.js"></script>
</body>
</html>
153 changes: 101 additions & 52 deletions change-recovery.html
Original file line number Diff line number Diff line change
@@ -1,69 +1,118 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous"
/>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/app.css" />
<title>Hive Account Recovery - Change Recovery Account</title>
</head>
</head>

<body>
<body>
<div class="container pt-3">
<a href="./">
<h1 class="text-center">Hive Account Recovery</h1>
</a>
<hr>
<h2 class="text-center mb-5">Change Recovery Account</h2>
<a href="./">
<h1 class="text-center">Hive Account Recovery</h1>
</a>
<hr />
<h2 class="text-center mb-5">Change Recovery Account</h2>

<div class="row">
<div class="offset-md-2 col-md-8">
<p class="text-muted">Each account lists another account as their recovery account. The recovery account
has the ability to create account_recovery_requests for the account to recover. An account can
change their recovery account at any time with a 30 day delay.</p>
<div class="row">
<div class="offset-md-2 col-md-8">
<p class="text-muted">
Each account lists another account as their recovery account. The
recovery account has the ability to create account_recovery_requests
for the account to recover. An account can change their recovery
account at any time with a 30 day delay.
</p>

<div class="alert" id="alert-change-rec"></div>
<div class="alert" id="alert-change-rec"></div>

<form id="change-recovery-account" class="mt-5 mb-5">
<div class="form-group">
<label for="change-rec-atr">Account To Recover</label>
<input type="text" name="change-rec-atr" id="change-rec-atr" class="form-control"
autocomplete="no">
<p class="form-text text-muted">Hive username of account you are trying to change recovery
account.</p>
</div>

<div class="form-group">
<label for="change-rec-new">New Recovery Account</label>
<input type="text" name="change-rec-new" id="change-rec-new" class="form-control"
autocomplete="no">
<p class="form-text text-muted">Hive username of the new recovery account. <span
class="text-info">Be careful this account can request account recovery.</span></p>
</div>
<form id="change-recovery-account" class="mt-5 mb-5">
<div class="form-group">
<label for="change-rec-atr">Account To Recover</label>
<input
type="text"
name="change-rec-atr"
id="change-rec-atr"
class="form-control"
autocomplete="off"
/>
<p class="form-text text-muted">
Hive username of account you are trying to change recovery
account.
</p>
</div>

<div class="form-group">
<label for="change-rec-pass" class="control-label">Master Password</label>
<input type="password" name="change-rec-pass" id="change-rec-pass" class="form-control">
<p class="form-text text-muted">MASTER PASSWORD of account to recover.</p>
</div>
<div class="form-group">
<label for="change-rec-new">New Recovery Account</label>
<input
type="text"
name="change-rec-new"
id="change-rec-new"
class="form-control"
autocomplete="off"
/>
<p class="form-text text-muted">
Hive username of the new recovery account.
<span class="text-info"
>Be careful this account can request account recovery.</span
>
</p>
</div>

<button class="btn btn-success btn-block">Change Account Recovery</button>
</form>
<div class="form-group">
<label for="change-rec-pass" class="control-label"
>Master Password</label
>
<input
type="password"
name="change-rec-pass"
id="change-rec-pass"
class="form-control"
/>
<p class="form-text text-muted">
MASTER PASSWORD of account to recover.
</p>
</div>

<button class="btn btn-success btn-block">
Change Account Recovery
</button>
</form>
</div>
</div>

<hr>
<p class="text-center">
Brought to you by <a href="https://hive.blog/@reazuliqbal">@reazuliqbal</a>
<hr />

<div class="text-center">
<p>
Brought to you by
<a href="https://hive.blog/@reazuliqbal">@reazuliqbal</a>
</p>

<a
href="javascript:void(0);"
class="small text-info"
onclick="voteHiveWitness()"
>Vote Witness</a
>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/@hiveio/[email protected]/dist/dhive.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/@hiveio/[email protected]/dist/dhive.js"></script>
<script src="js/app.js"></script>
</body>

</html>
</body>
</html>
10 changes: 0 additions & 10 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,4 @@ label {
.boc:active {
text-decoration: none;
color: #fff;
}

.blue {
background-color: #30A9DE;
}
.red {
background-color: #E53A40;
}
.green {
background-color: #75D701;
}
Loading

0 comments on commit 9ac844a

Please sign in to comment.