Skip to content

Commit

Permalink
Merge pull request #512 from fdm-monster/fix/cant-change-password
Browse files Browse the repository at this point in the history
Fix/cant change password
  • Loading branch information
davidzwa authored Nov 11, 2024
2 parents 103ede4 + f43794b commit 08d8b20
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 9 additions & 0 deletions RELEASE_NOTES.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Develop

# Client 0.0.7

Fixes:

- Account settings - cant change password
- Account settings - apply user id number to string coercion

# Client 0.0.6

## Features:

- User settings: add user roles dropdown to change verified users from GUEST role to OPERATOR or ADMIN.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fdm-monster/client-next",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "git",
"url": "git+https://github.com/fdm-monster/fdm-monster-client-next.git"
Expand Down
9 changes: 4 additions & 5 deletions src/components/Settings/AccountSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,15 @@ const formData = ref<{
onMounted(async () => {
await settingsStore.loadSettings()
if (!settingsStore.settings?.server.loginRequired) {
loginEnabled.value = settingsStore.settings?.server.loginRequired
}
loginEnabled.value = settingsStore.settings?.server.loginRequired
await profileStore.getProfile()
formData.value.username = profileStore.username as string
userId.value = profileStore.userId as string
})
async function changeUsername() {
if (!userId.value?.length) {
if (!userId.value?.toString()?.length) {
snackbar.openErrorMessage({ title: 'User not loaded' })
return
}
Expand All @@ -140,7 +139,7 @@ async function changeUsername() {
}
async function changePassword() {
if (!userId.value?.length) {
if (!userId.value?.toString()?.length) {
snackbar.openErrorMessage({ title: 'User not loaded' })
return
}
Expand Down

0 comments on commit 08d8b20

Please sign in to comment.