Fix channel key generation to use correct format
Use generate_channel_key() from channel module instead of hex Format: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -458,7 +458,8 @@ def generate(ctx, words, pin_length, channel_key):
|
|||||||
|
|
||||||
# Generate channel key if requested
|
# Generate channel key if requested
|
||||||
if channel_key:
|
if channel_key:
|
||||||
result["channel_key"] = secrets.token_hex(32)
|
from .channel import generate_channel_key
|
||||||
|
result["channel_key"] = generate_channel_key()
|
||||||
|
|
||||||
if ctx.obj.get("json"):
|
if ctx.obj.get("json"):
|
||||||
click.echo(json.dumps(result, indent=2))
|
click.echo(json.dumps(result, indent=2))
|
||||||
|
|||||||
Reference in New Issue
Block a user