mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-15 17:36:41 +02:00
Remove OTP formatting for Steam password
This commit is contained in:
parent
4a69bdb615
commit
3f06ca154f
@ -57,8 +57,11 @@
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
displayedOtp() {
|
displayedOtp() {
|
||||||
const spacePosition = Math.ceil(this.internal_password.length / 2)
|
let pwd = this.internal_password
|
||||||
let pwd = this.internal_password.substr(0, spacePosition) + " " + this.internal_password.substr(spacePosition)
|
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
|
return this.$root.appSettings.showOtpAsDot ? pwd.replace(/[0-9]/g, '●') : pwd
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user