yasuki_web.auth.set_my_avatar#

async set_my_avatar(request, body, user=Depends(dependency=<function current_user>, use_cache=True, scope=None))[source]#

Set the signed-in user’s avatar to a crop of a chosen card.

The card’s image path is resolved server-side from card_id (rejecting an unknown card), so a client never supplies an arbitrary image path; the path is stored alongside the crop so rendering needs no further card-DB lookup.