{% extends "base.html" %} {% block title %}Device Login{% endblock %} {% block content %}

Device Login

{% if expired or record is none %}

This login code has expired or doesn't exist.

Run cpm login again to get a new code.

{% elif record.status == 'pending' %}

A CLI on another machine wants to sign in to your account.

Code: {{ record.code }}

{% if user %}

Signing in as {{ user.email }}

{% endif %}
{% elif record.status == 'approved' %}

✅ Approved {{ record.code }}.

Return to your terminal — login should complete shortly.

{% else %}

This login code was already used.

Run cpm login again if needed.

{% endif %}
{% endblock %}