Store API tokens encrypted in the database.
During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.
If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
* Add display_priority column to cars table
* Respect display_priority in grafana, falling back to name
* Use smallint for priority rather than int
* Update missed dashboards to respect car priorities
Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
* Allow to sign in with API tokens
* Test signing in with API tokens
* Add button to go back to login with credentials
* Add note about how to get API tokens
* Updated the danish language spelling errors
I've correct danish spelling errors and added a few missing translations.
Best.
* Include suggested changes
Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
* adding swedish translation
* adding comments from endlish errors.po
* adding new translations for swedish
* fix#524 of adriankumpf/teslamate
* adding translation for geo-fence in swedish
* fixing translation of charge limit in swedish
* fixiing translation of mileage in swedish
* Fix typos
* adding swedish translations
* adjustment of swedish translation suggested by Thomas Hennig
* MQTT_HOST default should be 127.0.0.1 for screen, as in systemd
* adding drop_cap to traefik example, which all other guides have
* removing quotation marks around ports for portainer
* adjusting volumes for portainer to match other guides
* fix#635 fr translation
* Minor adjustments to swedish translation
and removing translations that are the same as in english
Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
* Make update_version of the API available
* Add update version to the update tooltip
* Fix formatting
* Update translations to reflect the new tooltip
* Fix car controller test
* Add update_version to the mqtt documentation