Same rationale as in
5b25580d ("Protect the user's tfa key setting."):
it should not be possible to change the value when it's not an actual
secret but a reference to what TFA method is used or, in case of 'x',
whether TFA is used.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
var data = response.result.data;
me.setValues(data);
if (data.keys) {
- if (data.keys === 'x!oath' || data.keys === 'x!u2f') {
+ if (data.keys === 'x' ||
+ data.keys === 'x!oath' ||
+ data.keys === 'x!u2f' ||
+ data.keys === 'x!yubico') {
me.down('[name="keys"]').setDisabled(1);
}
}