| valhallasw added a comment. |
I think the main thing is to separate the user name and the login name. I'm inclined to say that the '@suffix' API wasn't a great design -- the suffix should have been part of the password rather than the user name.
As far as pywikibot is concerned, I would actually suggest to do that, at least conceptually. In user-config, we would just store the username, but in the passwordfile, we would store an object BotPassword('suffix', 'password') instead of just the password. (I'm not sure how this would map to manual logins, but those don't really make sense in the context of botpasswords anyway). This could then also extend to OAuth, where the password would be an OAuthAsPassword(...) object which stores the oauth data.
At the same time, I'm not sure how the botpassword support is currently implemented, but I think the password file is directly available to LoginManager, and LoginManager is the only one that needs to know the details of how the user is logging in.
Cc: valhallasw, Aklapper, Lokal_Profil, pywikibot-bugs-list, Mdupont, JJMC89, jayvdb
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
