Always use lowercase for otpType and apply uppercase with CSS if needed

This commit is contained in:
Bubka
2020-11-16 14:15:33 +01:00
parent 27dd64a965
commit 17eb3d46c6
4 changed files with 15 additions and 19 deletions

View File

@@ -77,18 +77,11 @@
// - Trigger when user use the Advanced form and preview the account: We should have all OTP parameter
// to obtain a token, including Secret and otpType which are required
try {
this.internal_otpType = this.otpType.toLowerCase()
}
catch(e) {
//do nothing
}
finally {
this.internal_account = this.account
this.internal_service = this.service
this.internal_icon = this.icon
this.internal_hotpCounter = this.hotpCounter
}
this.internal_service = this.service
this.internal_account = this.account
this.internal_icon = this.icon
this.internal_otpType = this.otpType
this.internal_hotpCounter = this.hotpCounter
if( id ) {