Skip to content
Snippets Groups Projects

User settings form

Merged Valentin Rigal requested to merge user-settings-form into master
1 file
+ 7
6
Compare changes
  • Side-by-side
  • Inline
@@ -35,21 +35,21 @@
class="control is-expanded"
v-if="!showToken"
>
<b
<button
type="button"
class="input is-clickable"
class="button"
v-on:click="showToken = true"
title="Reveal your personal API access token"
>
DISPLAY TOKEN
</b>
Display token
</button>
</div>
<div
v-else
class="is-clickable"
v-on:click="copyToken"
>
<div class="input" title="Copy your personal API access token">
<div title="Copy your personal API access token">
{{ user.auth_token }}
<i class="icon-clipboard"></i>
</div>
@@ -170,7 +170,8 @@ export default defineComponent({
// Directly re-login user to keep a valid cookie authentication
try {
await this.login({ email: this.user.email, password: this.password })
this.notify({ type: 'success', text: 'Your password has been successfully changed.' })
this.notify({ type: 'success', text: 'Your password has been successfully updated' })
this.password = this.confirmPassword = ''
} catch {
this.logout()
}
Loading