Skip to content

Commit

Permalink
rework password reset workflow (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r0x authored and Severino committed Oct 24, 2023
1 parent b896dfa commit d480c6f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions resources/js/components/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,8 @@
>
<i class="fas fa-fw fa-undo text-warning" /> {{ t('global.reset') }}
</a>
<a
v-if="hasPreference('prefs.enable-password-reset-link')"
class="dropdown-item"
href="#"
:disabled="state.currentUserId != user.id && !can('users_roles_write')"
@click.prevent="updatePassword(user.email)"
>
<i class="fas fa-fw fa-paper-plane text-info" /> {{ t('global.send_reset_mail') }}
<a class="dropdown-item" href="#" :disabled="state.currentUserId != user.id && !can('users_roles_write')" @click.prevent="updatePassword(user.id)">
<i class="fas fa-fw fa-paper-plane text-info"></i> {{ t('global.reset_password') }}
</a>
<a
class="dropdown-item"
Expand Down

0 comments on commit d480c6f

Please sign in to comment.