mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
delete account without password
This commit is contained in:
@@ -31,14 +31,38 @@
|
||||
<div
|
||||
v-once
|
||||
class="dialog-disclaimer"
|
||||
v-html="$t('deleteLocalAccountText')"
|
||||
v-html="hasPassword
|
||||
? $t('deleteLocalAccountText')
|
||||
: $t('deleteSocialAccountText', {magicWord: 'DELETE'})"
|
||||
>
|
||||
</div>
|
||||
|
||||
<current-password-input
|
||||
v-if="hasPassword"
|
||||
:show-forget-password="true"
|
||||
@passwordValue="passwordValue = $event"
|
||||
/>
|
||||
|
||||
<div
|
||||
v-else
|
||||
class="input-area"
|
||||
>
|
||||
<div
|
||||
class="form"
|
||||
>
|
||||
<div class="settings-label">
|
||||
{{ $t("confirm") }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input
|
||||
v-model="passwordValue"
|
||||
class="form-control"
|
||||
type="text"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-once
|
||||
class="feedback"
|
||||
@@ -101,6 +125,9 @@ export default {
|
||||
...mapState({
|
||||
user: 'user.data',
|
||||
}),
|
||||
hasPassword () {
|
||||
return this.user.auth.local.has_password;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async deleteAccount () {
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
"resetDetail5": "Another option is using an <b>Orb of Rebirth</b>, which will reset everything else while preserving your Tasks and Equipment.",
|
||||
"resetText2": "You will lose all your levels, Gold, and Experience points. All your tasks (except those from challenges) will be deleted permanently and you will lose all of their historical data. You will lose all your equipment except Subscriber Mystery Items and free commemorative items. You will be able to buy the deleted items back, including all limited edition equipment (you will need to be in the correct class to re-buy class-specific gear). You will keep your current class, achievements and your pets and mounts. You might prefer to use an Orb of Rebirth instead, which is a much safer option and which will preserve your tasks and equipment.",
|
||||
"deleteLocalAccountText": "<b>Are you sure?</b> This will delete your account forever, and it can never be restored! You will need to register a new account to use Habitica again. Banked or spent Gems will not be refunded. If you're absolutely certain, type your password into the text box below.",
|
||||
"deleteSocialAccountText": "Are you sure? This will delete your account forever, and it can never be restored! You will need to register a new account to use Habitica again. Banked or spent Gems will not be refunded. If you're absolutely certain, type \"<%= magicWord %>\" into the text box below.",
|
||||
"deleteSocialAccountText": "<b>Are you sure?</b> This will delete your account forever, and it can never be restored! You will need to register a new account to use Habitica again. Banked or spent Gems will not be refunded. If you're absolutely certain, type <b>\"<%= magicWord %>\"</b> into the text box below.",
|
||||
"API": "API",
|
||||
"APICopied": "API token copied to clipboard.",
|
||||
"APITokenTitle": "API Token",
|
||||
|
||||
Reference in New Issue
Block a user