Commit 5ab3242
fix(bootstrap): make reset unconditionally regenerate IOTP
Extract generate_fresh_otp() from cmd_init_internal() so cmd_reset()
can bypass the user-exists guard and always produce a fresh IOTP. This
aligns the bootstrap helper's reset behavior with `occ reset iotp`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 76a4d2c commit 5ab3242
1 file changed
Lines changed: 23 additions & 20 deletions
Lines changed: 23 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 243 | + | |
259 | 244 | | |
260 | 245 | | |
261 | 246 | | |
| |||
274 | 259 | | |
275 | 260 | | |
276 | 261 | | |
277 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
278 | 283 | | |
279 | 284 | | |
280 | 285 | | |
| |||
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
291 | | - | |
292 | | - | |
293 | | - | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
0 commit comments