User can login with "Snap login" repeatedly with the same account

Bug #1638665 reported by Victor gonzalez
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)

Bug Description

Story: on first boot, file ~/.snap/auth.json is empty and once you do "snap login" it shows correctly the username:email information, however users could run snap login repeatedly with the same account(or other accounts).



Steps to reproduce:

1º Boot core on kvm/qemu
2º Complete console-conf
3º ssh username@localhost
4º Do "snap login <email>"
5º Once you're logged in, do "snap login <email>" again(with the same or any other U1 account)

Current result: user can login twice or more times with the same account or different U1 accounts
Expected result: message tells the user he's already logged in with the U1 account. If any other U1 account is submited, I do not know what's the expected result.
Is it possible to add different U1 accounts? and if so, why they do not appear in ~/.snap/auth.json after you logged in once?

description: updated
description: updated
description: updated
Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in snappy:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Triaged
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.