wrongCode changes a code's first digit, so it can never be the valid one.
(code string)
| 481 | |
| 482 | // wrongCode changes a code's first digit, so it can never be the valid one. |
| 483 | func wrongCode(code string) string { |
| 484 | first := (code[0]-'0'+1)%10 + '0' |
| 485 | return string(first) + code[1:] |
| 486 | } |
| 487 | |
| 488 | // Disable's rotation replaces this CLI's session; the saved credential must |
| 489 | // follow it, and only the token changes. |