mirror of
https://github.com/rclone/rclone.git
synced 2025-02-24 04:54:44 +08:00

Previously, with standard auth, the username would be stored in config - but only after entering the non-standard device/mountpoint sequence during config (a feature introduced with #5926). Regardless of that, rclone always requests the username from the api at startup (NewFS). In #6270 (commit 9dbed02329456c71d2052a6365041deda94bc020) this was changed to always store username in config (consistency), and then also use it to avoid the repeated customer info request in NewFs (performance). But, as reported in #6309, it did not work with legacy auth, where user enters username manually, if user entered an email address instead of the internal username required for api requests. This change was therefore recently reverted. The current commit takes another step back to not store the username in config during the non-standard device/mountpoint config sequence (consistentcy). The username will now only be stored in config when using legacy auth, where it is an input parameter.