mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-07 11:20:47 +03:00
rename updateCredential function
This commit is contained in:
parent
2015c5fd77
commit
90a0319daf
@ -240,20 +240,20 @@ Python {
|
||||
function calculate(credential) {
|
||||
var now = Math.floor(Date.now() / 1000)
|
||||
do_call('yubikey.controller.calculate', [credential, now, passwordKey],
|
||||
updateCredential)
|
||||
updateSingleCredential)
|
||||
}
|
||||
|
||||
function calculateSlotMode(slot, digits) {
|
||||
var now = Math.floor(Date.now() / 1000)
|
||||
do_call('yubikey.controller.calculate_slot_mode', [slot, digits, now],
|
||||
updateCredential)
|
||||
updateSingleCredential)
|
||||
}
|
||||
|
||||
/**
|
||||
Put a credential coming from the YubiKey in the
|
||||
right position in the credential list.
|
||||
*/
|
||||
function updateCredential(cred) {
|
||||
function updateSingleCredential(cred) {
|
||||
var result = []
|
||||
for (var i = 0; i < credentials.length; i++) {
|
||||
if (credentials[i].name === cred.name) {
|
||||
|
Loading…
Reference in New Issue
Block a user