fix shuffle

This commit is contained in:
2024-12-06 14:08:52 -06:00
parent bd06c68ab2
commit fa5b643e31
2 changed files with 2 additions and 7 deletions

View File

@@ -56,11 +56,6 @@ func (u *User) RefreshPasscode(passcodeAttrIdx []int, customerAttributes Custome
}
func (u *User) GetLoginInterface() ([]int, error) {
err := u.Interface.LoginShuffle()
if err != nil {
return nil, err
}
return u.Interface.IdxInterface, nil
}

View File

@@ -157,8 +157,8 @@ func (u *UserInterface) LoginShuffle() error {
selectedSets := utils.NewSetFromSlice[int](setIdxs[:numbOfSelectedSets])
for keyIdx, key := range keypadSet1 {
for idx, attrIdx := range key {
if selectedSets.Contains(attrIdx) {
for idx := range key {
if selectedSets.Contains(idx) {
keypadSet1[keyIdx][idx] = keypadSet2[keyIdx][idx]
}
}