This commit is contained in:
lingdocs 2021-08-21 23:17:43 +04:00
parent af1508986d
commit 2e7defbf61
2 changed files with 43 additions and 51 deletions

View File

@ -44,6 +44,8 @@
<div>
<button type="submit" class="btn btn-primary">Update Profile</button>
</div>
</form>
<h5>Account Level: <%= user.level %></h5>
<% if (user.email) { %>
<h4 class="mt-3">Password:</h4>
<% } %>
@ -85,7 +87,6 @@
<button type="button" style="display: none;" id="cancel-password-change-button" class="btn btn-light">Cancel</button>
</div>
<% } %>
</form>
<h4 class="mb-2">Linked Accounts:</h4>
<div class="mb-4">
<% if (user.google) { %>

View File

@ -199,12 +199,3 @@ export async function deleteFromLocalDb(type: LocalDbType, id: string | string[]
}
localDb.refresh();
}
function stringToHex(str: string) {
const arr1 = [];
for (let n = 0, l = str.length; n < l; n ++) {
const hex = Number(str.charCodeAt(n)).toString(16);
arr1.push(hex);
}
return arr1.join('');
}