fix shuffle
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user