Choose a name to use in Hackatime. This will take priority over Slack or GitHub names when possible. Letters, numbers, "-" and "_" only, max <%= User::USERNAME_MAX_LENGTH %> chars.
When enabled, others can view your coding statistics through public APIs. Many Hack Club YSWS programs use this to track your progress. Disabling this can prevent you from participating in some programs.
Permanently delete your account and all associated data. This action cannot be undone after the 30-day grace period.
<% else %>
Due to your account standing, you cannot request account deletion at this time. Reach out in #hackatime-v2 if this is a mistake.
<% end %>
🔑
API Key
Your API key is used to authenticate requests from your code editor. If your key has been compromised, you can rotate it to generate a new one. Rotating your API key will immediately invalidate your old key. You'll need to update the key in all of your code editors and IDEs.
🔗
Connected Accounts
GitHub Account
This is used to show your active projects on the leaderboard & current hacking activity on the dashboard.
<%= form.submit "Import Heartbeats",
class: "bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded font-medium transition-colors inline-flex items-center gap-2",
data: { confirm: "Are you sure you want to import heartbeats? This will add new data to your account." } %>
<%= render "shared/modal",
modal_id: "api-key-confirm-modal",
title: "Rotate API Key?",
description: "Your old key will be immediately invalidated and you'll need to update it in all your applications.",
icon_svg: '',
icon_color: "text-primary",
buttons: [
{
text: "Cancel",
class: "border border-gray-600 text-gray-300 hover:bg-darkless",
action: "click->modal#close"
},
{
text: "Rotate Now",
class: "bg-primary text-white hover:bg-red-600 font-medium",
action: "click->api-key-rotation#rotate"
}
] %>
<%= render "shared/modal",
modal_id: "api-key-success-modal",
title: "New API Key Generated",
description: "Your old API key has been invalidated. Update your editor configuration with this new key:",
icon_svg: '',
icon_color: "text-green-500",
max_width: "max-w-lg",
buttons: [
{
text: "Close",
class: "border border-gray-600 text-gray-300 hover:bg-darkless",
action: "click->modal#close"
},
{
text: "Copy Key",
class: "bg-primary text-white hover:bg-red-600 font-medium",
action: "click->api-key-rotation#copyKey"
}
],
custom: '
' %>
<% if @user.can_request_deletion? %>
<%= render "shared/modal",
modal_id: "account-deletion-confirm-modal",
title: "Delete Your Account?",
description: "This will permanently delete your account after a 30 day waiting period. During this time, you won't be able to use your account for any Hack Club programs.",
icon_svg: '',
icon_color: "text-primary",
buttons: [
{
text: "Cancel",
class: "border border-gray-600 text-gray-300 hover:bg-darkless",
action: "click->modal#close"
},
{
text: "Delete My Account",
class: "bg-primary text-white hover:bg-red-600 font-medium",
form: true,
url: create_deletion_path,
method: "post"
}
] %>