Browse Source

fix: password reset url, copy corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
2a664c20dd
  1. 4
      packages/nc-gui/components/account/UserList.vue
  2. 1
      packages/nc-gui/lang/en.json

4
packages/nc-gui/components/account/UserList.vue

@ -110,10 +110,10 @@ const copyPasswordResetUrl = async (user: User) => {
try {
const { reset_password_url } = await api.orgUsers.generatePasswordResetToken(user.id)
copy(`${dashboardUrl}/auth/password/reset/${reset_password_url}`)
copy(reset_password_url)
// Invite URL copied to clipboard
message.success(t('msg.success.inviteURLCopied'))
message.success(t('msg.success.passwordResetURLCopied'))
$e('c:user:copy-url')
} catch (e) {
message.error(await extractSdkResponseErrorMsg(e))

1
packages/nc-gui/lang/en.json

@ -702,6 +702,7 @@
"userDeletedFromProject": "Successfully deleted user from project",
"inviteEmailSent": "Invite Email sent successfully",
"inviteURLCopied": "Invite URL copied to clipboard",
"passwordResetURLCopied": "Password reset URL copied to clipboard",
"shareableURLCopied": "Copied shareable base URL to clipboard!",
"embeddableHTMLCodeCopied": "Copied embeddable HTML code!",
"userDetailsUpdated": "Successfully updated the user details",

Loading…
Cancel
Save