Files
Steven Nguyen 160c937dc2 fix: prevent 'Attribute "factors" must be an array' error
Because array_unique() preserves keys, the $factors can go from:

[
    0 => 'password',
    1 => 'totp',
    2 => 'totp',
    3 => 'email'
]

to:

[
    0 => 'password',
    1 => 'totp',
    3 => 'email'
]

and because this is not an array list, the validation fails.

Using array_values() after array_unique() will reset the keys to be sequential, resulting in:

[
    0 => 'password',
    1 => 'totp',
    2 => 'email'
]
2025-06-13 09:17:05 -07:00
..
2025-05-23 21:39:56 +04:00
2025-04-25 12:18:04 +02:00
2025-05-26 22:25:12 +12:00
2025-03-31 05:48:17 +00:00
2025-05-23 21:39:56 +04:00
2025-05-23 21:39:56 +04:00
2025-05-23 21:39:56 +04:00
2025-05-23 21:39:56 +04:00
2025-05-23 21:39:56 +04:00
2025-05-30 14:33:37 +05:30
2025-05-30 18:04:57 +05:30
2025-05-23 21:39:56 +04:00
2025-06-13 15:55:02 +05:30