Extend registration of devices
|Reported by:||Nicklas Nordborg||Owned by:||everyone|
Ticket #2097 added support for keeping track of the devices used by users. However, it also required that 2-factor authentication via email codes was enabled.
It would be nice if we could keep track of devices without the need for verification. This means that all logins should be attached to a device. We should introduce a flag to indicate if a device is verified or not. Email codes are sent only if the flag is not set and if the user has enabled 2-factor authentication.