Skip to content

Commit

Permalink
Fix ASF-ui wrong password format (#1705)
Browse files Browse the repository at this point in the history
* Fix ASF-ui wrong password format

* Remove unnecessary optional chaining operator

---------

Co-authored-by: FREDERICK <[email protected]>
nuckle and MrBurrBurr authored Dec 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 57b98e6 commit 397a521
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/views/ASFConfig.vue
Original file line number Diff line number Diff line change
@@ -100,8 +100,13 @@
// if we got routed to asf-config with params, we propably
// came from PasswordHash.vue and want to set ipc data from params
if (Object.keys(this.$route.params).length !== 0) {
this.model.IPCPassword = this.$route.params?.ipcPassword;
this.model.IPCPasswordFormat = this.$route.params?.ipcPasswordFormat;
// only set the values if they exist in the params
if (typeof this.$route.params.ipcPassword !== 'undefined') {
this.model.IPCPassword = this.$route.params.ipcPassword;
}
if (typeof this.$route.params.ipcPasswordFormat !== 'undefined') {
this.model.IPCPasswordFormat = this.$route.params.ipcPasswordFormat;
}
}
const extendedFields = {
9 changes: 7 additions & 2 deletions src/views/modals/BotConfig.vue
Original file line number Diff line number Diff line change
@@ -102,8 +102,13 @@
// if we got routed to bot-config with params, we propably
// came from PasswordEncrypt.vue and want to set password data from params
if (Object.keys(this.$route.params).length !== 0) {
this.model.SteamPassword = this.$route.params?.steamPassword;
this.model.PasswordFormat = this.$route.params?.passwordFormat;
// only set the values if they exist in the params
if (typeof this.$route.params.steamPassword !== 'undefined') {
this.model.SteamPassword = this.$route.params.steamPassword;
}
if (typeof this.$route.params.passwordFormat !== 'undefined') {
this.model.PasswordFormat = this.$route.params.passwordFormat;
}
}
const extendedFields = {

0 comments on commit 397a521

Please sign in to comment.