You've already forked AstralRinth
forked from didirus/AstralRinth
Add enter shortcut for 2FA & email management (#1504)
* Add event for email changing * Add event for 2fa setup & removal * Fix lint error * Update pages/settings/account.vue Co-authored-by: Emma Alexia <wafflecoffee7@gmail.com> --------- Co-authored-by: Emma Alexia <wafflecoffee7@gmail.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
maxlength="2048"
|
||||
type="email"
|
||||
:placeholder="`Enter your email address...`"
|
||||
@keyup.enter="saveEmail()"
|
||||
/>
|
||||
<div class="input-group push-right">
|
||||
<button class="iconified-button" @click="$refs.changeEmailModal.hide()">
|
||||
@@ -150,6 +151,7 @@
|
||||
maxlength="11"
|
||||
type="text"
|
||||
placeholder="Enter code..."
|
||||
@keyup.enter="removeTwoFactor()"
|
||||
/>
|
||||
<p v-if="twoFactorIncorrect" class="known-errors">The code entered is incorrect!</p>
|
||||
<div class="input-group push-right">
|
||||
@@ -201,6 +203,7 @@
|
||||
maxlength="6"
|
||||
type="text"
|
||||
placeholder="Enter code..."
|
||||
@keyup.enter="verifyTwoFactorCode()"
|
||||
/>
|
||||
<p v-if="twoFactorIncorrect" class="known-errors">The code entered is incorrect!</p>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user