Remove OTP formatting for Steam password

This commit is contained in:
Bubka 2022-07-07 11:47:13 +02:00
parent 4a69bdb615
commit 3f06ca154f

View File

@ -57,8 +57,11 @@
computed: {
displayedOtp() {
const spacePosition = Math.ceil(this.internal_password.length / 2)
let pwd = this.internal_password.substr(0, spacePosition) + " " + this.internal_password.substr(spacePosition)
let pwd = this.internal_password
if (this.internal_otp_type !== 'steamtotp') {
const spacePosition = Math.ceil(this.internal_password.length / 2)
pwd = this.internal_password.substr(0, spacePosition) + " " + this.internal_password.substr(spacePosition)
}
return this.$root.appSettings.showOtpAsDot ? pwd.replace(/[0-9]/g, '●') : pwd
},
},